diff --git a/core/modules/taxonomy/src/Tests/TaxonomyTermPagerTest.php b/core/modules/taxonomy/src/Tests/TaxonomyTermPagerTest.php index 6e9d2ed..b9075d7 100644 --- a/core/modules/taxonomy/src/Tests/TaxonomyTermPagerTest.php +++ b/core/modules/taxonomy/src/Tests/TaxonomyTermPagerTest.php @@ -39,7 +39,7 @@ protected function setUp() { /** * Tests that the pager is visible when there are more terms to display - * than the terms_per_page_admin setting + * than the terms_per_page_admin setting. */ public function testTaxonomyTermOverviewPager() { // Set limit to 3 terms per page. @@ -47,8 +47,17 @@ public function testTaxonomyTermOverviewPager() { ->set('terms_per_page_admin', '3') ->save(); - // Create 6 terms. - for ($x = 1; $x <= 6; $x++) { + // Create 3 terms. + for ($x = 1; $x <= 3; $x++) { + $this->createTerm($this->vocabulary); + } + + // Get Page 1. + $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview'); + $this->assertNoPattern('|