ClaroBlockFilterTest.php 854 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Drupal\FunctionalJavascriptTests\Theme;
  3. use Drupal\Tests\block\FunctionalJavascript\BlockFilterTest;
  4. /**
  5. * Runs BlockFilterTest in Claro.
  6. *
  7. * @group block
  8. *
  9. * @see \Drupal\Tests\block\FunctionalJavascript\BlockFilterTest.
  10. */
  11. class ClaroBlockFilterTest extends BlockFilterTest {
  12. /**
  13. * Modules to enable.
  14. *
  15. * Install the shortcut module so that claro.settings has its schema checked.
  16. * There's currently no way for Claro to provide a default and have valid
  17. * configuration as themes cannot react to a module install.
  18. *
  19. * @var string[]
  20. */
  21. public static $modules = ['shortcut'];
  22. /**
  23. * {@inheritdoc}
  24. */
  25. protected function setUp() {
  26. parent::setUp();
  27. $this->container->get('theme_installer')->install(['claro']);
  28. $this->config('system.theme')->set('default', 'claro')->save();
  29. }
  30. }