summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-10-25 23:29:33 (GMT)
committerAlex Pott2016-10-25 23:29:35 (GMT)
commit131144ba1bddecdbd5c6b036e3d838ed6473eac6 (patch)
tree0074f97b5c710d9788c32ad4823730d857d8288f
parentf00b584185cb788cf6a74c4840ef9d96a65dc2ad (diff)
Issue #2820442 by klausi: SimpleTestBrowserTest has random fails when BrowserTestBaseTest gets larger
(cherry picked from commit e276eeb1ed1d2bfd5bc8772db0cd2354e84a7d8b)
-rw-r--r--core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php3
-rw-r--r--core/modules/simpletest/tests/src/Functional/ThroughUITest.php23
2 files changed, 25 insertions, 1 deletions
diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
index c4528a5..3b2061e 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
@@ -4,6 +4,7 @@ namespace Drupal\simpletest\Tests;
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
+use Drupal\Tests\simpletest\Functional\ThroughUITest;
/**
* Tests the Simpletest UI internal browser.
@@ -131,7 +132,7 @@ class SimpleTestBrowserTest extends WebTestBase {
// A PHPUnit unit test.
'Drupal\Tests\action\Unit\Menu\ActionLocalTasksTest',
// A PHPUnit functional test.
- 'Drupal\FunctionalTests\BrowserTestBaseTest',
+ ThroughUITest::class,
);
foreach ($tests as $test) {
diff --git a/core/modules/simpletest/tests/src/Functional/ThroughUITest.php b/core/modules/simpletest/tests/src/Functional/ThroughUITest.php
new file mode 100644
index 0000000..4873743
--- /dev/null
+++ b/core/modules/simpletest/tests/src/Functional/ThroughUITest.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\Tests\simpletest\Functional;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Fixture test that is executed during Simpletest UI testing.
+ *
+ * @see \Drupal\simpletest\Tests::testTestingThroughUI()
+ *
+ * @group simpletest
+ */
+class ThroughUITest extends BrowserTestBase {
+
+ /**
+ * This test method must always pass.
+ */
+ public function testThroughUi() {
+ $this->pass('Success!');
+ }
+
+}