From a58eb706dcf1fb7437f91d19fb5c56eedfaa47a0 Mon Sep 17 00:00:00 2001 From: AlexAlexandru Date: Thu, 19 Jul 2018 21:14:18 +0300 Subject: [PATCH] added tests --- .../Test/Case/Model/Behavior/TranslateBehaviorTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php index 251e8a8bb..17e87c84d 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php @@ -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);