Skip to content
Permalink
Browse files

Remove use of TestCase::getMock() from "Form" namepace tests.

  • Loading branch information...
ADmad committed Jun 5, 2016
1 parent 718551b commit 352d01df706d5054e10b88f458460d5410394a80
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/TestCase/Form/FormTest.php
@@ -122,7 +122,9 @@ public function testErrors()
*/
public function testExecuteInvalid()
{
$form = $this->getMock('Cake\Form\Form', ['_execute']);
$form = $this->getMockBuilder('Cake\Form\Form')
->setMethods(['_execute'])
->getMock();
$form->validator()
->add('email', 'format', ['rule' => 'email']);
$data = [
@@ -141,7 +143,9 @@ public function testExecuteInvalid()
*/
public function testExecuteValid()
{
$form = $this->getMock('Cake\Form\Form', ['_execute']);
$form = $this->getMockBuilder('Cake\Form\Form')
->setMethods(['_execute'])
->getMock();
$form->validator()
->add('email', 'format', ['rule' => 'email']);
$data = [

0 comments on commit 352d01d

Please sign in to comment.
You can’t perform that action at this time.