Example #1
0
      'title' => 'french title',
      'body' => 'french body',
      'test_column' => '',
      'lang' => 'fr',
      'slug' => 'french-title',
    ),
  ),
  'Author' =>
  array(
    'id' => $article->Author->id,
    'name' => 'i18n author test',
    'type' => null
  ),
);

$t->is($article->toArray(true), $expected);

$articleForm = new MyArticleForm($article);

$expected = array(
  'id' => $article->id,
  'author_id' => $article->author_id,
  'is_on_homepage' => true,
  'type' => null,
  'views' => null,
  'created_at' => $article->created_at,
  'updated_at' => $article->updated_at,
  'en' =>
  array(
    'id' => $article->id,
    'title' => 'english title',