mirror of
https://github.com/predis/predis.git
synced 2026-08-29 19:55:45 +00:00
Make connection factory mandatory for RedisCluster constructor.
This commit is contained in:
@@ -47,7 +47,14 @@ class ClusterOptionTest extends PredisTestCase
|
||||
public function testAcceptsPredefinedShortNameString()
|
||||
{
|
||||
$option = new ClusterOption();
|
||||
|
||||
$options = $this->getMock('Predis\Configuration\OptionsInterface');
|
||||
$options->expects($this->any())
|
||||
->method('__get')
|
||||
->with('connections')
|
||||
->will($this->returnValue(
|
||||
$this->getMock('Predis\Connection\FactoryInterface')
|
||||
));
|
||||
|
||||
$this->assertInstanceOf('Predis\Connection\Aggregate\PredisCluster', $option->filter($options, 'predis'));
|
||||
$this->assertInstanceOf('Predis\Connection\Aggregate\PredisCluster', $option->filter($options, 'predis-cluster'));
|
||||
|
||||
Reference in New Issue
Block a user