public function testLogin() { $this->logIn(); $client = $this->client; $crawler = $client->request('GET', $this->app->path('mypage_login')); $this->assertTrue($client->getResponse()->isRedirect($this->app->url('mypage'))); }