Skip to content

Commit

Permalink
Make use of assertAttributeEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Sep 22, 2016
1 parent 4c9f1cc commit 197c2f4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/Cake/Test/Case/View/Helper/FormHelperTest.php
Expand Up @@ -10661,10 +10661,7 @@ public function testLastActionWithNamedNumeric() {
$this->Form->request->here = $here;
$this->Form->create('User');

$expected = $here;
$actual = $this->Form->_lastAction;

$this->assertEquals($expected, $actual);
$this->assertAttributeEquals($here, '_lastAction', $this->Form, "_lastAction shouldn't be empty.");
}

/**
Expand All @@ -10680,10 +10677,7 @@ public function testLastActionWithNamedString() {
$this->Form->request->here = $here;
$this->Form->create('User');

$expected = $here;
$actual = $this->Form->_lastAction;

$this->assertEquals($expected, $actual);
$this->assertAttributeEquals($here, '_lastAction', $this->Form, "_lastAction shouldn't be empty.");
}

}

0 comments on commit 197c2f4

Please sign in to comment.