/** * Tests opting out of Stable by setting the base theme to false. */ public function testWildWest() { $this->themeHandler->install(['test_wild_west']); $this->themeHandler->setDefault('test_wild_west'); $theme = $this->themeManager->getActiveTheme(); /** @var \Drupal\Core\Theme\ActiveTheme $base_theme */ $base_themes = $theme->getBaseThemes(); $this->assertTrue(empty($base_themes), 'No base theme is set when a theme has opted out of using Stable.'); }