public function testNew()
{
$this->logIn();
$client = $this->client;
$crawler = $client->request('GET', '/journal/1/contact/new');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=journal_contact]')->form();
$form['journal_contact[contactType]'] = '1';
$form['journal_contact[fullName]'] = 'Contact Name - phpunit';
$form['journal_contact[address]'] = 'contact address phpunit';
$form['journal_contact[phone]'] = '05005005050';
$form['journal_contact[email]'] = '[email protected]';
$form['journal_contact[institution]'] = '1';
$client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('Contact Name - phpunit', $this->client->getResponse()->getContent());
}