Chris@0: drupalLogin($this->drupalCreateUser(['administer taxonomy', 'bypass node access'])); Chris@0: $this->vocabulary = $this->createVocabulary(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Tests that the pager is displayed properly on the term overview page. Chris@0: */ Chris@0: public function testTaxonomyTermOverviewPager() { Chris@0: // Set limit to 3 terms per page. Chris@0: $this->config('taxonomy.settings') Chris@0: ->set('terms_per_page_admin', '3') Chris@0: ->save(); Chris@0: Chris@0: // Create 3 terms. Chris@0: for ($x = 1; $x <= 3; $x++) { Chris@0: $this->createTerm($this->vocabulary); Chris@0: } Chris@0: Chris@0: // Get Page 1. Chris@0: $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview'); Chris@18: $this->assertSession()->responseNotMatches('|