Commit e5f0f726 authored by catch's avatar catch
Browse files

Issue #3177120 by anmolgoyal74, Pooja Ganjage, paulocs, markdorison,...

Issue #3177120 by anmolgoyal74, Pooja Ganjage, paulocs, markdorison, walangitan, longwave: Remove references to WebTestBase

(cherry picked from commit 3e47f835)
parent 6ddd9afe
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -20,8 +20,7 @@
 * is invalid.
 *
 * @see \Drupal\KernelTests\KernelTestBase::register()
 * @see \Drupal\simpletest\WebTestBase::setUp()
 * @see \Drupal\simpletest\KernelTestBase::containerBuild()
 * @see \Drupal\Core\Test\FunctionalTestSetupTrait::prepareSettings()
 */
class ConfigSchemaChecker implements EventSubscriberInterface {
  use SchemaCheckTrait;
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ public function scan($type, $include_tests = NULL) {
    // test site environment, because the site directories are not the same.
    // Therefore, add the site directory of the parent site to the search paths,
    // so that contained extensions are still discovered.
    // @see \Drupal\simpletest\WebTestBase::setUp()
    // @see \Drupal\Core\Test\FunctionalTestSetupTrait::prepareSettings().
    if ($parent_site = Settings::get('test_parent_site')) {
      $searchdirs[static::ORIGIN_PARENT_SITE] = $parent_site;
    }
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ public function register() {
   */
  public function unregister() {
    // Normally, there are definitely wrappers set for the ALL filter. However,
    // in some cases involving many container rebuilds (e.g. WebTestBase),
    // in some cases involving many container rebuilds (e.g. BrowserTestBase),
    // $this->wrappers may be empty although wrappers are still registered
    // globally. Thus an isset() check is needed before iterating.
    if (isset($this->wrappers[StreamWrapperInterface::ALL])) {
+0 −1
Original line number Diff line number Diff line
@@ -211,7 +211,6 @@ protected function rebuildContainer() {
   *
   * @see \Drupal\Core\Test\FunctionalTestSetupTrait::rebuildAll()
   * @see \Drupal\Tests\BrowserTestBase::installDrupal()
   * @see \Drupal\simpletest\WebTestBase::setUp()
   */
  protected function resetAll() {
    // Clear all database and static caches and rebuild data structures.
+0 −2
Original line number Diff line number Diff line
@@ -37,8 +37,6 @@ public function __invoke() {
            foreach ($headers as $header_name => $header_values) {
              if (preg_match('/^X-Drupal-Assertion-[0-9]+$/', $header_name, $matches)) {
                foreach ($header_values as $header_value) {
                  // Call \Drupal\simpletest\WebTestBase::error() with the parameters from
                  // the header.
                  $parameters = unserialize(urldecode($header_value));
                  if (count($parameters) === 3) {
                    if ($parameters[1] === 'User deprecated function') {
Loading