summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/breakpoint/src/Tests/BreakpointThemeTest.php')
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointThemeTest.php74
1 files changed, 0 insertions, 74 deletions
diff --git a/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php b/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php
deleted file mode 100644
index 233ae72..0000000
--- a/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * @file
- * Definition of Drupal\breakpoint\Tests\BreakpointsThemeTest.
- */
-
-namespace Drupal\breakpoint\Tests;
-
-use Drupal\breakpoint\Tests\BreakpointGroupTestBase;
-use Drupal\breakpoint\Entity\BreakpointGroup;
-use Drupal\breakpoint\Entity\Breakpoint;
-
-/**
- * Thoroughly test the breakpoints provided by a theme.
- *
- * @group breakpoint
- */
-class BreakpointThemeTest extends BreakpointGroupTestBase {
-
- protected function setUp() {
- parent::setUp();
- theme_enable(array('breakpoint_test_theme'));
- }
-
- /**
- * Test the breakpoints provided by a theme.
- */
- public function testThemeBreakpoints() {
- // Verify the breakpoint group for breakpoint_test_theme was created.
- $breakpoint_group_obj = entity_create('breakpoint_group', array(
- 'label' => 'Breakpoint test theme',
- 'name' => 'breakpoint_test_theme',
- 'source' => 'breakpoint_test_theme',
- 'sourceType' => Breakpoint::SOURCE_TYPE_THEME,
- 'id' => Breakpoint::SOURCE_TYPE_THEME . '.breakpoint_test_theme.breakpoint_test_theme',
- ));
- $breakpoint_group_obj->addBreakpoints(entity_load_multiple('breakpoint',
- array(
- 'theme.breakpoint_test_theme.mobile',
- 'theme.breakpoint_test_theme.narrow',
- 'theme.breakpoint_test_theme.wide',
- 'theme.breakpoint_test_theme.tv',
- )
- ));
-
- // Verify we can load this breakpoint defined by the theme.
- $this->verifyBreakpointGroup($breakpoint_group_obj);
- }
-
- /**
- * Test the breakpoints defined by the custom group.
- */
- public function testThemeBreakpointGroup() {
- // Verify the breakpoint group 'test' was created by breakpoint_test_theme.
- $breakpoint_group_obj = entity_create('breakpoint_group', array(
- 'label' => 'Test Theme',
- 'name' => 'test',
- 'sourceType' => Breakpoint::SOURCE_TYPE_THEME,
- 'source' => 'breakpoint_test_theme',
- 'id' => Breakpoint::SOURCE_TYPE_THEME . '.breakpoint_test_theme.test',
- ));
- $breakpoint_group_obj->addBreakpoints(entity_load_multiple('breakpoint',
- array(
- 'theme.breakpoint_test_theme.mobile',
- 'theme.breakpoint_test_theme.narrow',
- 'theme.breakpoint_test_theme.wide',
- )
- ));
-
- // Verify we can load this breakpoint defined by the theme.
- $this->verifyBreakpointGroup($breakpoint_group_obj);
- }
-
-}