Procházet zdrojové kódy

Fixes #62: Changed usage of deprecated getMock() to current createMock()

Alexander Makarov před 9 roky
rodič
revize
c200693b05

+ 1 - 1
tests/codeception/unit/models/ContactFormTest.php

@@ -26,7 +26,7 @@ class ContactFormTest extends TestCase
 
     public function testContact()
     {
-        $model = $this->getMock('app\models\ContactForm', ['validate']);
+        $model = $this->createMock('app\models\ContactForm', ['validate']);
         $model->expects($this->once())->method('validate')->will($this->returnValue(true));
 
         $model->attributes = [