diff --git a/tests/Redis/RedisTest.php b/tests/Redis/RedisTest.php new file mode 100644 index 0000000..1e2027d --- /dev/null +++ b/tests/Redis/RedisTest.php @@ -0,0 +1,40 @@ +setConnectionNames($connections); + + if( !$succeeds ) + $this->expectException( CheckFailedException::class ); + + foreach( $connections as $connection ) + $connectionChecker->shouldReceive('check')->with($connection)->once()->andReturn( $succeeds ); + + $checker->check(); + } + + public function dataProvider( ) { + return [ + [ [ 'test' ], true ], + [ [ 'cookies' ], false ], + ]; + } +} \ No newline at end of file