|
@@ -139,10 +139,10 @@ class FactoryTest extends PredisTestCase
|
|
->method('getParameters')
|
|
->method('getParameters')
|
|
->will($this->returnValue($parameters));
|
|
->will($this->returnValue($parameters));
|
|
$connection->expects($this->at(1))
|
|
$connection->expects($this->at(1))
|
|
- ->method('pushInitCommand')
|
|
|
|
|
|
+ ->method('addConnectCommand')
|
|
->with($this->isRedisCommand('AUTH', array('foobar')));
|
|
->with($this->isRedisCommand('AUTH', array('foobar')));
|
|
$connection->expects($this->at(2))
|
|
$connection->expects($this->at(2))
|
|
- ->method('pushInitCommand')
|
|
|
|
|
|
+ ->method('addConnectCommand')
|
|
->with($this->isRedisCommand('SELECT', array(0)));
|
|
->with($this->isRedisCommand('SELECT', array(0)));
|
|
|
|
|
|
$factory = new Factory();
|
|
$factory = new Factory();
|