summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint
diff options
context:
space:
mode:
authorwebchick2014-07-10 20:50:37 -0700
committerwebchick2014-07-10 20:50:37 -0700
commit30c2afed2071526c6709d8381e30db9ae4950793 (patch)
tree52ebd520c164fce3ed54763d903d8f952d7908c1 /core/modules/breakpoint
parentf905406d1926b589273adb91d8ec818ca8afde92 (diff)
Issue #697760 by sun: Replace getInfo() in tests with native phpDoc + annotations (following PHPUnit).
Diffstat (limited to 'core/modules/breakpoint')
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointAPITest.php12
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointCRUDTest.php12
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointGroupAPITest.php12
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointGroupCRUDTest.php12
-rw-r--r--core/modules/breakpoint/src/Tests/BreakpointThemeTest.php12
-rw-r--r--core/modules/breakpoint/tests/src/BreakpointConfigEntityUnitTest.php16
-rw-r--r--core/modules/breakpoint/tests/src/BreakpointGroupConfigEntityUnitTest.php16
-rw-r--r--core/modules/breakpoint/tests/src/BreakpointMediaQueryTest.php12
8 files changed, 19 insertions, 85 deletions
diff --git a/core/modules/breakpoint/src/Tests/BreakpointAPITest.php b/core/modules/breakpoint/src/Tests/BreakpointAPITest.php
index 86f9816..8ec2b11 100644
--- a/core/modules/breakpoint/src/Tests/BreakpointAPITest.php
+++ b/core/modules/breakpoint/src/Tests/BreakpointAPITest.php
@@ -14,18 +14,12 @@ use Drupal\breakpoint\InvalidBreakpointSourceTypeException;
use Drupal\Component\Utility\Unicode;
/**
- * Tests for general breakpoint API functions.
+ * Tests general API functions of the breakpoint module.
+ *
+ * @group breakpoint
*/
class BreakpointAPITest extends BreakpointTestBase {
- public static function getInfo() {
- return array(
- 'name' => 'Breakpoint general API functions',
- 'description' => 'Test general API functions of the breakpoint module.',
- 'group' => 'Breakpoint',
- );
- }
-
/**
* Test Breakpoint::buildConfigName().
*/
diff --git a/core/modules/breakpoint/src/Tests/BreakpointCRUDTest.php b/core/modules/breakpoint/src/Tests/BreakpointCRUDTest.php
index a9fcadf..24f96d6 100644
--- a/core/modules/breakpoint/src/Tests/BreakpointCRUDTest.php
+++ b/core/modules/breakpoint/src/Tests/BreakpointCRUDTest.php
@@ -10,18 +10,12 @@ use Drupal\breakpoint\Tests\BreakpointTestBase;
use Drupal\breakpoint\Entity\Breakpoint;
/**
- * Tests for breakpoint CRUD operations.
+ * Tests creation, loading, updating, deleting of breakpoints.
+ *
+ * @group breakpoint
*/
class BreakpointCRUDTest extends BreakpointTestBase {
- public static function getInfo() {
- return array(
- 'name' => 'Breakpoint CRUD operations',
- 'description' => 'Test creation, loading, updating, deleting of breakpoints.',
- 'group' => 'Breakpoint',
- );
- }
-
/**
* Test CRUD operations for breakpoints.
*/
diff --git a/core/modules/breakpoint/src/Tests/BreakpointGroupAPITest.php b/core/modules/breakpoint/src/Tests/BreakpointGroupAPITest.php
index 52c2ef4..1742203 100644
--- a/core/modules/breakpoint/src/Tests/BreakpointGroupAPITest.php
+++ b/core/modules/breakpoint/src/Tests/BreakpointGroupAPITest.php
@@ -15,18 +15,12 @@ use Drupal\breakpoint\InvalidBreakpointSourceTypeException;
use Drupal\Component\Utility\Unicode;
/**
- * Tests for general breakpoint group API functions.
+ * Tests general API functions of the breakpoint module.
+ *
+ * @group breakpoint
*/
class BreakpointGroupAPITest extends BreakpointGroupTestBase {
- public static function getInfo() {
- return array(
- 'name' => 'Breakpoint group general API functions',
- 'description' => 'Test general API functions of the breakpoint module.',
- 'group' => 'Breakpoint',
- );
- }
-
/**
* Test Breakpoint::buildConfigName().
*/
diff --git a/core/modules/breakpoint/src/Tests/BreakpointGroupCRUDTest.php b/core/modules/breakpoint/src/Tests/BreakpointGroupCRUDTest.php
index e9eeb00..21724aa 100644
--- a/core/modules/breakpoint/src/Tests/BreakpointGroupCRUDTest.php
+++ b/core/modules/breakpoint/src/Tests/BreakpointGroupCRUDTest.php
@@ -11,18 +11,12 @@ use Drupal\breakpoint\Entity\BreakpointGroup;
use Drupal\breakpoint\Entity\Breakpoint;
/**
- * Tests for breakpoint group CRUD operations.
+ * Tests creation, loading, updating, deleting of breakpoint groups.
+ *
+ * @group breakpoint
*/
class BreakpointGroupCRUDTest extends BreakpointGroupTestBase {
- public static function getInfo() {
- return array(
- 'name' => 'Breakpoint group CRUD operations',
- 'description' => 'Test creation, loading, updating, deleting of breakpoint groups.',
- 'group' => 'Breakpoint',
- );
- }
-
/**
* Test CRUD operations for breakpoint groups.
*/
diff --git a/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php b/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php
index 5715a8e..f5d3e82 100644
--- a/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php
+++ b/core/modules/breakpoint/src/Tests/BreakpointThemeTest.php
@@ -11,18 +11,12 @@ use Drupal\breakpoint\Entity\BreakpointGroup;
use Drupal\breakpoint\Entity\Breakpoint;
/**
- * Test breakpoints provided by themes.
+ * Thoroughly test the breakpoints provided by a theme.
+ *
+ * @group breakpoint
*/
class BreakpointThemeTest extends BreakpointGroupTestBase {
- public static function getInfo() {
- return array(
- 'name' => 'Breakpoint theme functionality',
- 'description' => 'Thoroughly test the breakpoints provided by a theme.',
- 'group' => 'Breakpoint',
- );
- }
-
public function setUp() {
parent::setUp();
theme_enable(array('breakpoint_test_theme'));
diff --git a/core/modules/breakpoint/tests/src/BreakpointConfigEntityUnitTest.php b/core/modules/breakpoint/tests/src/BreakpointConfigEntityUnitTest.php
index dc59e9c..a9aec44 100644
--- a/core/modules/breakpoint/tests/src/BreakpointConfigEntityUnitTest.php
+++ b/core/modules/breakpoint/tests/src/BreakpointConfigEntityUnitTest.php
@@ -13,10 +13,7 @@ use Drupal\Tests\UnitTestCase;
/**
* @coversDefaultClass \Drupal\breakpoint\Entity\Breakpoint
- *
- * @group Drupal
- * @group Config
- * @group Breakpoint
+ * @group breakpoint
*/
class BreakpointConfigEntityUnitTest extends UnitTestCase {
@@ -58,17 +55,6 @@ class BreakpointConfigEntityUnitTest extends UnitTestCase {
/**
* {@inheritdoc}
*/
- public static function getInfo() {
- return array(
- 'description' => '',
- 'name' => '\Drupal\breakpoint\Entity\Breakpoint unit test',
- 'group' => 'Entity',
- );
- }
-
- /**
- * {@inheritdoc}
- */
public function setUp() {
$this->entityTypeId = $this->randomName();
diff --git a/core/modules/breakpoint/tests/src/BreakpointGroupConfigEntityUnitTest.php b/core/modules/breakpoint/tests/src/BreakpointGroupConfigEntityUnitTest.php
index 4b81a65..e66541d 100644
--- a/core/modules/breakpoint/tests/src/BreakpointGroupConfigEntityUnitTest.php
+++ b/core/modules/breakpoint/tests/src/BreakpointGroupConfigEntityUnitTest.php
@@ -14,10 +14,7 @@ use Drupal\Tests\UnitTestCase;
/**
* @coversDefaultClass \Drupal\breakpoint\Entity\BreakpointGroup
- *
- * @group Drupal
- * @group Config
- * @group Breakpoint
+ * @group breakpoint
*/
class BreakpointGroupConfigEntityUnitTest extends UnitTestCase {
@@ -59,17 +56,6 @@ class BreakpointGroupConfigEntityUnitTest extends UnitTestCase {
/**
* {@inheritdoc}
*/
- public static function getInfo() {
- return array(
- 'description' => '',
- 'name' => '\Drupal\breakpoint\Entity\BreakpointGroup unit test',
- 'group' => 'Entity',
- );
- }
-
- /**
- * {@inheritdoc}
- */
public function setUp() {
$this->entityTypeId = $this->randomName();
diff --git a/core/modules/breakpoint/tests/src/BreakpointMediaQueryTest.php b/core/modules/breakpoint/tests/src/BreakpointMediaQueryTest.php
index 1186619..c8ab81d 100644
--- a/core/modules/breakpoint/tests/src/BreakpointMediaQueryTest.php
+++ b/core/modules/breakpoint/tests/src/BreakpointMediaQueryTest.php
@@ -11,20 +11,12 @@ use Drupal\breakpoint\Entity\Breakpoint;
use Drupal\breakpoint\InvalidBreakpointMediaQueryException;
/**
- * Tests for media queries in a breakpoint.
+ * Tests validation of media queries.
*
- * @group Breakpoint
+ * @group breakpoint
*/
class BreakpointMediaQueryTest extends UnitTestCase {
- public static function getInfo() {
- return array(
- 'name' => 'Breakpoint media query tests',
- 'description' => 'Test validation of media queries.',
- 'group' => 'Breakpoint',
- );
- }
-
/**
* Test valid media queries.
*/