mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
parent
09e7f1d491
commit
85b86cb282
2 changed files with 13 additions and 10 deletions
|
@ -285,6 +285,10 @@ class HelperTest extends CakeTestCase {
|
|||
$expected = array('HelperTestComment', 'id', 'time');
|
||||
$this->assertEquals($expected, $this->Helper->entity());
|
||||
|
||||
$this->Helper->setEntity('HelperTestComment.created.year');
|
||||
$expected = array('HelperTestComment', 'created', 'year');
|
||||
$this->assertEquals($expected, $this->Helper->entity());
|
||||
|
||||
$this->Helper->setEntity(null);
|
||||
$this->Helper->setEntity('ModelThatDoesntExist.field_that_doesnt_exist');
|
||||
$expected = array('ModelThatDoesntExist', 'field_that_doesnt_exist');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue