databaseDumpFiles = [ __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php', ]; } /** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->themeHandler = $this->container->get('theme_handler'); $this->themeHandler->refreshInfo(); } /** * Tests that the Stable base theme is installed if necessary. */ public function testUpdateHookN() { $this->assertTrue($this->themeHandler->themeExists('test_stable')); $this->assertFalse($this->themeHandler->themeExists('stable')); $this->runUpdates(); // Refresh the theme handler now that Stable has been installed. $this->themeHandler->refreshInfo(); $this->assertTrue($this->themeHandler->themeExists('stable')); } }