Fix tests

This commit is contained in:
Jeremy Benoist 2022-05-13 14:15:19 +02:00
parent 4947ea6758
commit 37019b5ad5
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
1 changed files with 5 additions and 4 deletions

View File

@ -456,7 +456,7 @@ class EntryControllerTest extends WallabagCoreTestCase
$crawler = $client->request('GET', '/annotated/list'); $crawler = $client->request('GET', '/annotated/list');
$this->assertSame(200, $client->getResponse()->getStatusCode()); $this->assertSame(200, $client->getResponse()->getStatusCode());
$this->assertCount(2, $crawler->filter('li.entry')); $this->assertCount(2, $crawler->filter('ol.entries > li'));
} }
public function testRangeException() public function testRangeException()
@ -941,7 +941,7 @@ class EntryControllerTest extends WallabagCoreTestCase
$crawler = $client->submit($form, $data); $crawler = $client->submit($form, $data);
$this->assertCount(2, $crawler->filter('li.entry')); $this->assertCount(2, $crawler->filter('ol.entries > li'));
$entry = new Entry($this->getLoggedInUser()); $entry = new Entry($this->getLoggedInUser());
$entry->setUrl($this->url); $entry->setUrl($this->url);
@ -961,7 +961,7 @@ class EntryControllerTest extends WallabagCoreTestCase
$crawler = $client->submit($form, $data); $crawler = $client->submit($form, $data);
$this->assertCount(3, $crawler->filter('li.entry')); $this->assertCount(3, $crawler->filter('ol.entries > li'));
} }
public function testPaginationWithFilter() public function testPaginationWithFilter()
@ -1768,6 +1768,7 @@ class EntryControllerTest extends WallabagCoreTestCase
$client = $this->getClient(); $client = $this->getClient();
$crawler = $client->request('GET', '/domain/1'); $crawler = $client->request('GET', '/domain/1');
$this->assertCount(4, $crawler->filter('li.entry')); $this->assertSame(200, $client->getResponse()->getStatusCode());
$this->assertCount(4, $crawler->filter('ol.entries > li'));
} }
} }