function JsonApiTopLevelResourceNormalizerTest::tearDown
Overrides KernelTestBase::tearDown
File
-
core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiTopLevelResourceNormalizerTest.php, line 242
Class
- JsonApiTopLevelResourceNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer @group jsonapi
Namespace
Drupal\Tests\jsonapi\Kernel\NormalizerCode
protected function tearDown() : void {
if ($this->node) {
$this->node
->delete();
}
if ($this->term1) {
$this->term1
->delete();
}
if ($this->term2) {
$this->term2
->delete();
}
if ($this->vocabulary) {
$this->vocabulary
->delete();
}
if ($this->user) {
$this->user
->delete();
}
if ($this->user2) {
$this->user2
->delete();
}
parent::tearDown();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.