summaryrefslogtreecommitdiff
path: root/profiles/testing
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-28 23:05:40 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-28 23:05:40 -0800
commita71a3f59c82ec2b3b027817fafd0f5edad2e54ab (patch)
treebf7875de10115a6451ec167d6c28b71966e35df1 /profiles/testing
parentbb3f7e97c33671539d61158e16cac965c72080d0 (diff)
downloadbrdo-a71a3f59c82ec2b3b027817fafd0f5edad2e54ab.tar.gz
brdo-a71a3f59c82ec2b3b027817fafd0f5edad2e54ab.tar.bz2
Issue #911354 by adrian, boombatower, jhedstrom, sun, yhahn, langworthy, dixon_, jrbeeman: Fixed Tests in profiles/[name]/modules cannot be run and cannot use a different profile for running tests.
Diffstat (limited to 'profiles/testing')
-rw-r--r--profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info1
-rw-r--r--profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.test37
2 files changed, 38 insertions, 0 deletions
diff --git a/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info b/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info
index 085c33525..2bf7e10ba 100644
--- a/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info
+++ b/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info
@@ -4,3 +4,4 @@ package = Testing
version = VERSION
core = 7.x
hidden = TRUE
+files[] = drupal_system_listing_compatible_test.test
diff --git a/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.test b/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.test
new file mode 100644
index 000000000..198c1d8a0
--- /dev/null
+++ b/profiles/testing/modules/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.test
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * Helper to verify tests in installation profile modules.
+ */
+class DrupalSystemListingCompatibleTestCase extends DrupalWebTestCase {
+ /**
+ * Use the Minimal profile.
+ *
+ * This test needs to use a different installation profile than the test which
+ * asserts that this test is found.
+ *
+ * @see SimpleTestInstallationProfileModuleTestsTestCase
+ */
+ protected $profile = 'minimal';
+
+ public static function getInfo() {
+ return array(
+ 'name' => 'Installation profile module tests helper',
+ 'description' => 'Verifies that tests in installation profile modules are found and may use another profile for running tests.',
+ 'group' => 'Installation profile',
+ );
+ }
+
+ function setUp() {
+ // Attempt to install a module in Testing profile, while this test runs with
+ // a different profile.
+ parent::setUp(array('drupal_system_listing_compatible_test'));
+ }
+
+ /**
+ * Non-empty test* method required to executed the test case class.
+ */
+ function testDrupalSystemListing() {
+ $this->pass(__CLASS__ . ' test executed.');
+ }
+}