| @@ 89-103 (lines=15) @@ | ||
| 86 | /** |
|
| 87 | * @depends testCreate |
|
| 88 | */ |
|
| 89 | public function testFilter() |
|
| 90 | { |
|
| 91 | $client = static::createClient(); |
|
| 92 | $crawler = $client->request('GET', '/admin/subfamilylog/'); |
|
| 93 | $form = $crawler->filter('div#filter form button[type="submit"]')->form(array( |
|
| 94 | 'subfamilylog_filter[name]' => 'First%', |
|
| 95 | // ... maybe use just one field here ... |
|
| 96 | )); |
|
| 97 | $client->submit($form); |
|
| 98 | $crawler = $client->followRedirect(); |
|
| 99 | $this->assertTrue($client->getResponse()->isSuccessful()); |
|
| 100 | $crawler = $client->click($crawler->filter('div#filter a')->link()); |
|
| 101 | $crawler = $client->followRedirect(); |
|
| 102 | $this->assertTrue($client->getResponse()->isSuccessful()); |
|
| 103 | } /** |
|
| 104 | * @depends testCreate |
|
| 105 | */ |
|
| 106 | public function testSort() |
|
| @@ 82-94 (lines=13) @@ | ||
| 79 | /** |
|
| 80 | * @depends testCreate |
|
| 81 | */ |
|
| 82 | public function testFilter() { |
|
| 83 | $client = static::createClient(); |
|
| 84 | $crawler = $client->request('GET', '/admin/users/'); |
|
| 85 | $form = $crawler->filter('div#filter form button[type="submit"]')->form(array( |
|
| 86 | // ... maybe use just one field here ... |
|
| 87 | )); |
|
| 88 | $client->submit($form); |
|
| 89 | $crawler = $client->followRedirect(); |
|
| 90 | $this->assertTrue($client->getResponse()->isSuccessful()); |
|
| 91 | $crawler = $client->click($crawler->filter('div#filter a')->link()); |
|
| 92 | $crawler = $client->followRedirect(); |
|
| 93 | $this->assertTrue($client->getResponse()->isSuccessful()); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * @depends testCreate |
|