Skip to content

Commit

Permalink
Fix tests based on pagination counter
Browse files Browse the repository at this point in the history
  • Loading branch information
alterphp committed Dec 10, 2018
1 parent be2575c commit 37c3e06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions TODO-UPGRADE-EAB2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- Config for Travis CI (https://github.com/EasyCorp/EasyAdminBundle/compare/1.x...master#diff-354f30a63fb0907d4ad57269548329e3)
- Upgrade to Bootstrap 4

- Début modif templates : https://github.com/EasyCorp/EasyAdminBundle/compare/1.x...master#diff-f79d865e04c5546d92f8fcec7ae94b19
8 changes: 4 additions & 4 deletions tests/Controller/EmbeddedListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public function testRequestMultivalueFiltersAreApplied()

$this->assertSame(200, $this->client->getResponse()->getStatusCode());
$this->assertContains(
'1 - 15 of 100',
$crawler->filter('section.content-footer .list-pagination')->text()
'100 results',
$crawler->filter('section.content-footer .list-pagination-counter')->text()
);

$searchFormCrawler = $crawler->filter('.action-search form');
Expand Down Expand Up @@ -146,8 +146,8 @@ public function testRequestNotNullFilterIsApplied()

$this->assertSame(200, $this->client->getResponse()->getStatusCode());
$this->assertContains(
'1 - 15 of 90',
$crawler->filter('section.content-footer .list-pagination')->text()
'90 results',
$crawler->filter('section.content-footer .list-pagination-counter')->text()
);
}

Expand Down
12 changes: 6 additions & 6 deletions tests/Controller/RequestParametersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public function testRequestMultivalueFiltersAreApplied()

$this->assertSame(200, $this->client->getResponse()->getStatusCode());
$this->assertContains(
'1 - 15 of 100',
$crawler->filter('section.content-footer .list-pagination')->text()
'100 results',
$crawler->filter('section.content-footer .list-pagination-counter')->text()
);

$searchFormCrawler = $crawler->filter('.action-search form');
Expand Down Expand Up @@ -117,8 +117,8 @@ public function testRequestNotNullFilterIsApplied()

$this->assertSame(200, $this->client->getResponse()->getStatusCode());
$this->assertContains(
'1 - 15 of 90',
$crawler->filter('section.content-footer .list-pagination')->text()
'90 results',
$crawler->filter('section.content-footer .list-pagination-counter')->text()
);
}

Expand All @@ -130,8 +130,8 @@ public function testRequestEmptyFilterIsIgnored()

$this->assertSame(200, $this->client->getResponse()->getStatusCode());
$this->assertContains(
'1 - 15 of 100',
$crawler->filter('section.content-footer .list-pagination')->text()
'100 results',
$crawler->filter('section.content-footer .list-pagination-counter')->text()
);
}
}

0 comments on commit 37c3e06

Please sign in to comment.