Make use of assertAttributeEquals

This commit is contained in:
Mischa ter Smitten 2016-09-22 21:30:18 +02:00
parent 4c9f1cc154
commit 197c2f4e60

View file

@ -10661,10 +10661,7 @@ class FormHelperTest extends CakeTestCase {
$this->Form->request->here = $here; $this->Form->request->here = $here;
$this->Form->create('User'); $this->Form->create('User');
$expected = $here; $this->assertAttributeEquals($here, '_lastAction', $this->Form, "_lastAction shouldn't be empty.");
$actual = $this->Form->_lastAction;
$this->assertEquals($expected, $actual);
} }
/** /**
@ -10680,10 +10677,7 @@ class FormHelperTest extends CakeTestCase {
$this->Form->request->here = $here; $this->Form->request->here = $here;
$this->Form->create('User'); $this->Form->create('User');
$expected = $here; $this->assertAttributeEquals($here, '_lastAction', $this->Form, "_lastAction shouldn't be empty.");
$actual = $this->Form->_lastAction;
$this->assertEquals($expected, $actual);
} }
} }