public function testregenerateAPI() { $client = $this->client; $crawler = $client->request('GET', '/user/apikey/regenerate', array(), array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'admin')); $this->assertStatusCode(302, $client); }