Fixes #62: Changed usage of deprecated getMock() to current createMock()
This commit is contained in:
parent
ddeab345bb
commit
c200693b05
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user