mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
added tests
This commit is contained in:
parent
1aa0108354
commit
a58eb706dc
1 changed files with 10 additions and 0 deletions
|
@ -1144,6 +1144,16 @@ class TranslateBehaviorTest extends CakeTestCase {
|
|||
$TestModel->bindTranslation($translations);
|
||||
|
||||
$result = $TestModel->find('first');
|
||||
$TestModel->find('first', array(
|
||||
'fields' => array(
|
||||
'TranslatedItem.title',
|
||||
),
|
||||
));
|
||||
$TestModel->find('first', array(
|
||||
'fields' => array(
|
||||
'TranslatedItem.title',
|
||||
),
|
||||
));
|
||||
$this->assertArrayHasKey('Title', $result);
|
||||
$this->assertArrayHasKey('content', $result['Title'][0]);
|
||||
$this->assertArrayNotHasKey('title', $result);
|
||||
|
|
Loading…
Reference in a new issue