+
+ public function testUserSearch()
+ {
+ $this->logInAs('admin');
+ $client = $this->getClient();
+
+ // Search on unread list
+ $crawler = $client->request('GET', '/users/index');
+
+ $form = $crawler->filter('form[name=search_users]')->form();
+ $data = [
+ 'search_user[term]' => 'admin',
+ ];
+
+ $crawler = $client->submit($form, $data);
+
+ $this->assertCount(2, $crawler->filter('tr')); // 1 result + table header
+ }