Skip to content

Commit c200693

Browse files
committed
Fixes #62: Changed usage of deprecated getMock() to current createMock()
1 parent ddeab34 commit c200693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/codeception/unit/models/ContactFormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function tearDown()
2626

2727
public function testContact()
2828
{
29-
$model = $this->getMock('app\models\ContactForm', ['validate']);
29+
$model = $this->createMock('app\models\ContactForm', ['validate']);
3030
$model->expects($this->once())->method('validate')->will($this->returnValue(true));
3131

3232
$model->attributes = [

0 commit comments

Comments
 (0)