Commit 224c447f authored by alexpott's avatar alexpott

Issue #2494735 by hussainweb: add $runTestInSeparateProcess = TRUE for BrowserTestBase

parent 674201f1
......@@ -41,11 +41,6 @@
* 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
......@@ -216,6 +211,19 @@ abstract class BrowserTestBase extends \PHPUnit_Framework_TestCase {
*/
protected $mink;
/**
* {@inheritdoc}
*
* Browser tests are run in separate processes to prevent collisions between
* code that may be loaded by tests.
*/
protected $runTestInSeparateProcess = TRUE;
/**
* {@inheritdoc}
*/
protected $preserveGlobalState = FALSE;
/**
* Initializes Mink sessions.
*/
......
......@@ -13,9 +13,6 @@
* Tests BrowserTestBase functionality.
*
* @group simpletest
*
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
*/
class BrowserTestBaseTest extends BrowserTestBase {
......
......@@ -14,8 +14,6 @@
/**
* @coversDefaultClass \Drupal\Core\Form\FormCache
* @group Form
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
*/
class FormCacheTest extends UnitTestCase {
......@@ -89,6 +87,16 @@ class FormCacheTest extends UnitTestCase {
*/
protected $requestPolicy;
/**
* {@inheritdoc}
*/
protected $runTestInSeparateProcess = TRUE;
/**
* {@inheritdoc}
*/
protected $preserveGlobalState = FALSE;
/**
* {@inheritdoc}
*/
......
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