/**
  * testMixedCreateUpdateWithArrayLocale method
  *
  * @return void
  */
 public function testMixedCreateUpdateWithArrayLocale()
 {
     $this->loadFixtures('Translate', 'TranslatedItem');
     $TestModel = new TranslatedItem();
     $TestModel->locale = array('cze', 'deu');
     $data = array('TranslatedItem' => array('id' => 1, 'title' => array('eng' => 'Updated Title #1', 'spa' => 'Nuevo leyenda #1'), 'content' => 'Upraveny obsah #1'));
     $TestModel->create();
     $TestModel->save($data);
     $TestModel->unbindTranslation();
     $translations = array('title' => 'Title', 'content' => 'Content');
     $TestModel->bindTranslation($translations, false);
     $result = $TestModel->read(null, 1);
     $result['Title'] = Set::sort($result['Title'], '{n}.id', 'asc');
     $result['Content'] = Set::sort($result['Content'], '{n}.id', 'asc');
     $expected = array('TranslatedItem' => array('id' => 1, 'slug' => 'first_translated', 'locale' => 'cze', 'title' => 'Titulek #1', 'content' => 'Upraveny obsah #1'), 'Title' => array(array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Updated Title #1'), array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titel #1'), array('id' => 5, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titulek #1'), array('id' => 19, 'locale' => 'spa', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Nuevo leyenda #1')), 'Content' => array(array('id' => 2, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Content #1'), array('id' => 4, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Inhalt #1'), array('id' => 6, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Upraveny obsah #1')));
     $this->assertEquals($expected, $result);
 }