public function testIndexWithPostSex() { $crawler = $this->client->request('POST', $this->app->path('admin_customer'), array('admin_search_customer' => array('_token' => 'dummy', 'sex' => 2))); $this->expected = '検索'; $this->actual = $crawler->filter('h3.box-title')->text(); $this->assertContains($this->expected, $this->actual); }