public function testEdit()
{
$this->logIn();
$client = $this->client;
$crawler = $client->request('GET', '/admin/post/1/edit');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=admin_post]')->form();
$form['admin_post[translations][' . $this->locale . '][title]'] = 'Post Edit Title - phpunit';
$form['admin_post[translations][' . $this->locale . '][content]'] = 'Post content - phpunit';
$crawler = $client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('Post Edit Title - phpunit', $this->client->getResponse()->getContent());
}