diff --git a/core/modules/block/src/Tests/BlockDemonstrateRegionsTest.php b/core/modules/block/src/Tests/BlockDemonstrateRegionsTest.php index d414873..76beeda 100644 --- a/core/modules/block/src/Tests/BlockDemonstrateRegionsTest.php +++ b/core/modules/block/src/Tests/BlockDemonstrateRegionsTest.php @@ -21,15 +21,7 @@ class BlockDemonstrateRegionsTest extends WebTestBase { * * @var array */ - public static $modules = ['block']; - - public static function getInfo() { - return [ - 'name' => 'Block Demonstrate block regions', - 'description' => 'Tests functionality of "Demonstrate block regions".', - 'group' => 'Block', - ]; - } + public static $modules = ['block', 'help']; /** * {@inheritdoc} @@ -46,7 +38,7 @@ protected function setUp() { \Drupal::service('router.builder')->rebuild(); // Place Help block on the page. - $this->drupalPlaceBlock('system_help_block'); + $this->drupalPlaceBlock('help_block'); } /** @@ -58,9 +50,10 @@ public function testDemonstrateSeven() { $this->drupalGet('admin/structure/block'); $this->clickLink(t('Seven')); - $this->clickLink(t('Demonstrate block regions (Seven)')); + $this->clickLink(t('Demonstrate block regions (@theme)', ['@theme' => 'Seven'])); $this->clickLink(t('Exit block region demonstration')); $this->assertResponse(200, 'Came back to block regions of Seven theme'); } + }