Skip to content

Commit

Permalink
Update use of deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 2, 2019
1 parent c7c8cc9 commit 376f03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestSuite/TestCase.php
Expand Up @@ -772,7 +772,7 @@ public function getMockForModel(string $alias, ?array $methods = [], array $opti

/** @var \Cake\ORM\Table|\PHPUnit\Framework\MockObject\MockObject $mock */
$mock = $this->getMockBuilder($className)
->setMethods($methods)
->onlyMethods($methods)
->setConstructorArgs([$options])
->getMock();

Expand Down

0 comments on commit 376f03b

Please sign in to comment.