|
@@ -74,6 +74,20 @@ class PipelineContextTest extends PredisTestCase
|
|
|
$this->assertSame($pipeline, $pipeline->echo('one')->echo('two')->echo('three'));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @group disconnected
|
|
|
+ */
|
|
|
+ public function testExecuteReturnsPipelineForFluentInterface()
|
|
|
+ {
|
|
|
+ $profile = ServerProfile::getDefault();
|
|
|
+ $connection = $this->getMock('Predis\Connection\SingleConnectionInterface');
|
|
|
+
|
|
|
+ $pipeline = new PipelineContext(new Client($connection));
|
|
|
+ $command = $profile->createCommand('echo', array('one'));
|
|
|
+
|
|
|
+ $this->assertSame($pipeline, $pipeline->executeCommand($command));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @group disconnected
|
|
|
*/
|