public function testEdit()
{
$this->logIn();
$client = $this->client;
$id = $this->sampleObjectLoader->loadJournalPage();
$crawler = $client->request('GET', '/journal/1/page/' . $id . '/edit');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=journal_page]')->form();
$form['journal_page[translations][en][title]'] = 'Page Edit Title - phpunit';
$form['journal_page[translations][en][body]'] = 'content page phpunit en';
$form['journal_page[translations][tr][title]'] = 'Page Edit Title - phpunit';
$form['journal_page[translations][tr][body]'] = 'content page phpunit tr';
$client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('Page Edit Title - phpunit', $this->client->getResponse()->getContent());
}