function KernelTestBaseTest::testSetUpDoesNotLeak

Tests set up does not leak.

@legacy-covers ::setUp

Attributes

#[Depends('testSetUp')]

File

core/tests/Drupal/KernelTests/KernelTestBaseTest.php, line 110

Class

KernelTestBaseTest
Tests Drupal\KernelTests\KernelTestBase.

Namespace

Drupal\KernelTests

Code

public function testSetUpDoesNotLeak() : void {
  // Ensure that we have a different database prefix.
  $schema = $this->container
    ->get('database')
    ->schema();
  $this->assertFalse($schema->tableExists('foo'));
}

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