Skip to content

Commit

Permalink
Adapt to fit expected implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Feb 28, 2015
1 parent 0375a64 commit 4cf6965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
Expand Up @@ -971,16 +971,16 @@ public function testFilterUntranslatedWithFinder()
}

/**
* Tests that conditions set when defining the behavior are applied correctly
* Tests that allowEmptyTranslations takes effect
*
* @return void
*/
public function testConditions()
public function testEmptyTranslations()
{
$table = TableRegistry::get('Articles');
$table->addBehavior('Translate', [
'fields' => ['title', 'body', 'description'],
'conditions' => ['content <>' => '']
'allowEmptyTranslations' => false,
]);
$table->locale('spa');
$result = $table->find()->first();
Expand Down

0 comments on commit 4cf6965

Please sign in to comment.