public function testNew()
{
$this->logIn();
$client = $this->client;
$crawler = $client->request('GET', '/journal/1/post/new');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=journal_post]')->form();
$form['journal_post[translations][en][title]'] = 'Post Title - phpunit';
$form['journal_post[translations][en][content]'] = 'content post phpunit en';
$form['journal_post[translations][tr][title]'] = 'Post Title - phpunit';
$form['journal_post[translations][tr][content]'] = 'content post phpunit tr';
$client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('Post Title - phpunit', $this->client->getResponse()->getContent());
}