From c200693b05704bbe50ffe88513b62715ea737f1c Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sat, 2 Jul 2016 19:51:35 +0300 Subject: [PATCH] Fixes #62: Changed usage of deprecated getMock() to current createMock() --- tests/codeception/unit/models/ContactFormTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/codeception/unit/models/ContactFormTest.php b/tests/codeception/unit/models/ContactFormTest.php index 3234829..9bc36d1 100644 --- a/tests/codeception/unit/models/ContactFormTest.php +++ b/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 = [