Преглед на файлове

[tests] Fix wrong method in mock.

Daniele Alessandri преди 9 години
родител
ревизия
a933a13087
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tests/Predis/Connection/FactoryTest.php

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

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