瀏覽代碼

[tests] Fix wrong method in mock.

Daniele Alessandri 9 年之前
父節點
當前提交
3328ad76be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/Predis/Connection/FactoryTest.php

+ 1 - 1
tests/Predis/Connection/FactoryTest.php

@@ -126,7 +126,7 @@ class FactoryTest extends PredisTestCase
     public function testCreateConnectionWithoutInitializationCommands()
     {
         $profile = $this->getMock('Predis\Profile\ProfileInterface');
-        $profile->expects($this->never())->method('create');
+        $profile->expects($this->never())->method('createCommand');
 
         $factory = new Factory($profile);
         $parameters = new Parameters();