summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-02-27 14:30:43 +0000
committerNathaniel Catchpole2014-02-27 14:30:43 +0000
commit6727b8146ee709c6cef38d832edde4321291fab7 (patch)
treecea367ce5fe6af832298fe1acc86a7dffff84db7 /core/modules/breakpoint
parentae8be3cc9684df1dabf9fd7df9f13e41afeb604f (diff)
Revert "Issue #2188661 by sun, Berdir: Extension System, Part II: ExtensionDiscovery."
This reverts commit ae8be3cc9684df1dabf9fd7df9f13e41afeb604f.
Diffstat (limited to 'core/modules/breakpoint')
-rw-r--r--core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php7
-rw-r--r--core/modules/breakpoint/tests/breakpoint_theme_test.info.yml9
-rw-r--r--core/modules/breakpoint/tests/breakpoint_theme_test.module13
3 files changed, 29 insertions, 0 deletions
diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php
index 153df41..ed88881 100644
--- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php
+++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php
@@ -15,6 +15,13 @@ use Drupal\breakpoint\Entity\Breakpoint;
*/
class BreakpointThemeTest extends BreakpointGroupTestBase {
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = array('breakpoint_theme_test');
+
public static function getInfo() {
return array(
'name' => 'Breakpoint theme functionality',
diff --git a/core/modules/breakpoint/tests/breakpoint_theme_test.info.yml b/core/modules/breakpoint/tests/breakpoint_theme_test.info.yml
new file mode 100644
index 0000000..f035360
--- /dev/null
+++ b/core/modules/breakpoint/tests/breakpoint_theme_test.info.yml
@@ -0,0 +1,9 @@
+name: 'Breakpoint theme test'
+type: module
+description: 'Test breakpoints provided by themes'
+package: Other
+version: VERSION
+core: 8.x
+hidden: true
+dependencies:
+ - breakpoint
diff --git a/core/modules/breakpoint/tests/breakpoint_theme_test.module b/core/modules/breakpoint/tests/breakpoint_theme_test.module
new file mode 100644
index 0000000..765cc50
--- /dev/null
+++ b/core/modules/breakpoint/tests/breakpoint_theme_test.module
@@ -0,0 +1,13 @@
+<?php
+/**
+ * @file
+ * Test breakpoint functionality for breakpoints provided by themes.
+ */
+
+/**
+ * Implements hook_system_theme_info().
+ */
+function breakpoint_theme_test_system_theme_info() {
+ $themes['breakpoint_test_theme'] = drupal_get_path('module', 'breakpoint_theme_test') . '/themes/breakpoint_test_theme/breakpoint_test_theme.info.yml';
+ return $themes;
+}