Explorar o código

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

Alexander Makarov %!s(int64=9) %!d(string=hai) anos
pai
achega
c200693b05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/codeception/unit/models/ContactFormTest.php

+ 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 = [