diff --git a/core/modules/system/src/Tests/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php index 2bd8f4f..1dabf15 100644 --- a/core/modules/system/src/Tests/Pager/PagerTest.php +++ b/core/modules/system/src/Tests/Pager/PagerTest.php @@ -92,7 +92,7 @@ protected function assertPagerItems($current_page) { $page++; if ($current_page == $page) { $this->assertClass($element, 'is-active', 'Element for current page has .is-active class.'); - $this->assertTrue(isset($element->a), 'Element for current page has link.'); + $this->assertTrue($element->a, 'Element for current page has link.'); } else { $this->assertNoClass($element, 'is-active', "Element for page $page has no .is-active class.");