| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function testHasEvents() |
||
| 10 | { |
||
| 11 | $client = static::createClient(); |
||
| 12 | |||
| 13 | $crawler = $client->request('GET', '/events/last'); |
||
| 14 | |||
| 15 | // Checking that we have events table |
||
| 16 | $this->assertEquals( |
||
| 17 | 1, |
||
| 18 | $crawler->filter('.last-subscriptions-log table')->count(), |
||
| 19 | 'Has no events table' |
||
| 20 | ); |
||
| 21 | |||
| 22 | // Checking that we have at least one event in the table |
||
| 23 | $this->assertGreaterThan( |
||
| 24 | 0, |
||
| 25 | $crawler->filter('.last-subscriptions-log table')->children()->filter('tbody')->children()->count(), |
||
| 26 | 'No events shown in the table' |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 31 | } |