public function JsonApiDocumentTopLevelNormalizerTest::tearDown in JSON:API 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php \Drupal\Tests\jsonapi\Kernel\Normalizer\JsonApiDocumentTopLevelNormalizerTest::tearDown()
Overrides KernelTestBase::tearDown
File
- tests/
src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php, line 187
Class
- JsonApiDocumentTopLevelNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer @group jsonapi @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\NormalizerCode
public function tearDown() {
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();
}
}