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

This commit is contained in:
Alexander Makarov 2016-07-02 19:51:35 +03:00
parent ddeab345bb
commit c200693b05

View File

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