Skip to content

Commit

Permalink
Deleting commented function
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-maldonado committed Mar 17, 2017
1 parent d0dab44 commit 002c695
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
Expand Up @@ -1736,29 +1736,4 @@ public function testBuildMarshalMapUpdateEntitiesValidationErrors()
];
$this->assertEquals($expected, $entity->errors('es'));
}

// /**
// * Test that translationField method returns the standard column name
// * while using the default locale, and the i18n table alias when
// * using other language
// *
// * @return void
// */
// public function testTranslationFieldErrors()
// {
// $table = TableRegistry::get('Articles');
// $table->addBehavior('Translate', [
// 'fields' => ['title'],
// 'defaultLocale' => 'en_US'
// ]);
//
//// I18n::locale('en_US');
//// $this->assertEquals('Articles.title', $table->translationField('title'));
//
//// I18n::locale('de_DE');
//// $this->assertEquals($table->translationField('title'), 'Articles_title_translation.content');
//
//// I18n::locale('en');
//// $this->assertEquals($table->translationField('title'), 'Articles_title_translation.content');
// }
}

0 comments on commit 002c695

Please sign in to comment.