public function testEdit()
{
$this->logIn();
$client = $this->client;
$id = $this->sampleObjectLoader->loadJournalIndex();
$crawler = $client->request('GET', '/journal/1/index/' . $id . '/edit');
$this->assertStatusCode(200, $client);
$form = $crawler->filter('form[name=journal_index]')->form();
$form['journal_index[link]'] = 'http://phpunit-edit-ojs.io';
$client->submit($form);
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect();
$this->assertContains('http://phpunit-edit-ojs.io', $this->client->getResponse()->getContent());
}