diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php index c4528a53adfd9e6c9bdff4de921f060041630156..3b2061ec4b319639c8006e0fe07673d88e98f59a 100644 --- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php +++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php @@ -4,6 +4,7 @@ use Drupal\Core\Url; use Drupal\simpletest\WebTestBase; +use Drupal\Tests\simpletest\Functional\ThroughUITest; /** * Tests the Simpletest UI internal browser. @@ -131,7 +132,7 @@ public function testTestingThroughUI() { // 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 0000000000000000000000000000000000000000..48737433f366d208d907548f1ff1eb411342a654 --- /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!'); + } + +}