BrowserTestBase.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php
Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/BrowserTestBase.php
  2. 10 core/tests/Drupal/Tests/BrowserTestBase.php
  3. 11.x core/tests/Drupal/Tests/BrowserTestBase.php

Namespace

Drupal\simpletest

File

core/modules/simpletest/src/BrowserTestBase.php

View source
<?php

namespace Drupal\simpletest;

@trigger_error(__NAMESPACE__ . '\\BrowserTestBase is deprecated in Drupal 8.1.x, will be removed before Drupal 9.0. Use Drupal\\Tests\\BrowserTestBase instead.', E_USER_DEPRECATED);
use Drupal\Tests\BrowserTestBase as BaseBrowserTestBase;

/**
 * Provides a test case for functional Drupal tests.
 *
 * Tests extending BrowserTestBase must exist in the
 * Drupal\Tests\yourmodule\Functional namespace and live in the
 * modules/yourmodule/tests/src/Functional directory.
 *
 * @ingroup testing
 *
 * @see \Drupal\simpletest\WebTestBase
 * @see \Drupal\Tests\BrowserTestBase
 *
 * @deprecated in drupal:8.1.0 and is removed from drupal:9.0.0.
 *   Use Drupal\Tests\BrowserTestBase instead.
 */
abstract class BrowserTestBase extends BaseBrowserTestBase {

}

Classes

Title Deprecated Summary
BrowserTestBase

in drupal:8.1.0 and is removed from drupal:9.0.0. Use Drupal\Tests\BrowserTestBase instead.

Provides a test case for functional Drupal tests.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.