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);
|
$TestModel->bindTranslation($translations);
|
||||||
|
|
||||||
$result = $TestModel->find('first');
|
$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('Title', $result);
|
||||||
$this->assertArrayHasKey('content', $result['Title'][0]);
|
$this->assertArrayHasKey('content', $result['Title'][0]);
|
||||||
$this->assertArrayNotHasKey('title', $result);
|
$this->assertArrayNotHasKey('title', $result);
|
||||||
|
|
Loading…
Reference in a new issue