mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Make use of assertAttributeEquals
This commit is contained in:
parent
4c9f1cc154
commit
197c2f4e60
1 changed files with 2 additions and 8 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue