public function testDelete()
{
$em = $this->em;
$contactType = new ContactTypes();
$contactType->setCurrentLocale($this->locale);
$contactType->setName('Delete Contact Type - phpunit');
$em->persist($contactType);
$em->flush();
$id = $contactType->getId();
$this->logIn();
$client = $this->client;
$token = $this->generateToken('ojs_admin_contact_type' . $id);
$client->request('DELETE', '/admin/contact-type/' . $id . '/delete', array('_token' => $token));
$this->assertStatusCode(302, $client);
}