/** * Log the user * @param Crawler $crawler */ private function login($crawler) { $form = $crawler->selectButton('_submit')->form(); // définit certaines valeurs $form['_username'] = '******'; $form['_password'] = '******'; return $this->client->submit($form); }