public function testNew()
{
$this->logIn();
$client = $this->client;
$crawler = $client->request('GET', '/admin/subject/new');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=subject]')->form();
$form['subject[translations][' . $this->locale . '][subject]'] = 'Subject - phpunit';
$form['subject[translations][' . $this->locale . '][description]'] = 'content - phpunit';
$form['subject[parent]'] = '1';
$crawler = $client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('Subject - phpunit', $this->client->getResponse()->getContent());
}