Chris@0: drupalGet(''); Chris@0: $this->assertNoText('Powered by Drupal'); Chris@0: $this->assertNoCacheTag('config:block_list'); Chris@0: Chris@0: // Install the block module, and place the "Powered by Drupal" block. Chris@0: $this->container->get('module_installer')->install(['block', 'shortcut']); Chris@0: $this->rebuildContainer(); Chris@0: $this->container->get('router.builder')->rebuild(); Chris@0: $this->drupalPlaceBlock('system_powered_by_block'); Chris@0: Chris@0: // Check the same page, block.module's hook_install() should have Chris@0: // invalidated the 'rendered' cache tag to make blocks show up. Chris@0: $this->drupalGet(''); Chris@0: $this->assertCacheTag('config:block_list'); Chris@0: $this->assertText('Powered by Drupal'); Chris@0: } Chris@0: Chris@0: }