Commit 5af2cf65 authored by alexpott's avatar alexpott

Issue #2469731 by xjm, larowlan, pfrenssen, hussainweb, chx: Document when to use BrowserTestBase

parent c52ea87c
......@@ -29,14 +29,26 @@
use Symfony\Component\HttpFoundation\Request;
/**
* Test case for functional Drupal tests.
* Provides a test case for functional Drupal tests.
*
* @ingroup testing
* Note that this class does not yet have feature parity with WebTestBase, so
* WebTestBase should be used where possible. In particular, this class does
* not yet have the following features:
* - verbose output - see https://www.drupal.org/node/2469721
* - ajax form emulation - see https://www.drupal.org/node/2469713
*
* Tests extending BrowserTestBase must exist in the
* Drupal\Tests\yourmodule\Functional namespace and live in the
* modules/yourmodule/Tests/Functional directory.
*
* All BrowserTestBase tests must have two annotations to ensure process
* isolation:
* - @runTestsInSeparateProcesses
* - @preserveGlobalState disabled
*
* @ingroup testing
*
* @see \Drupal\simpletest\WebTestBase
*/
abstract class BrowserTestBase extends \PHPUnit_Framework_TestCase {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment