summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint/src/Tests/BreakpointTestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/breakpoint/src/Tests/BreakpointTestBase.php')
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointTestBase.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/core/modules/breakpoint/src/Tests/BreakpointTestBase.php b/core/modules/breakpoint/src/Tests/BreakpointTestBase.php
deleted file mode 100644
index c820689..0000000
--- a/core/modules/breakpoint/src/Tests/BreakpointTestBase.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * @file
- * Definition of Drupal\breakpoint\Tests\BreakpointTestBase.
- */
-
-namespace Drupal\breakpoint\Tests;
-
-use Drupal\simpletest\WebTestBase;
-use Drupal\breakpoint\Entity\Breakpoint;
-
-/**
- * Base class for Breakpoint tests.
- */
-abstract class BreakpointTestBase extends WebTestBase {
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = array('breakpoint');
-
- protected function setUp() {
- parent::setUp();
- }
-
- /**
- * Verify that a breakpoint is properly stored.
- */
- public function verifyBreakpoint(Breakpoint $breakpoint, Breakpoint $compare_breakpoint = NULL) {
- $properties = array(
- 'label',
- 'mediaQuery',
- 'source',
- 'sourceType',
- 'weight',
- 'multipliers',
- );
-
- // Verify Breakpoint::load().
- $compare_breakpoint = is_null($compare_breakpoint) ? Breakpoint::load($breakpoint->id()) : $compare_breakpoint;
- foreach ($properties as $property) {
- $t_args = array(
- '%breakpoint' => $breakpoint->label(),
- '%property' => $property,
- );
- $this->assertEqual($compare_breakpoint->{$property}, $breakpoint->{$property}, format_string('Proper %property for breakpoint %breakpoint.', $t_args), 'Breakpoint API');
- }
- }
-}