public function testNew()
{
$this->logIn();
$client = $this->client;
$crawler = $client->request('GET', '/admin/page/new');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=admin_page]')->form();
$form['admin_page[translations][' . $this->locale . '][title]'] = 'Page Title - phpunit';
$form['admin_page[translations][' . $this->locale . '][body]'] = 'body - phpunit';
$form['admin_page[visible]'] = '1';
$client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('Page Title - phpunit', $client->getResponse()->getContent());
}