public function XmlSitemapMenuFunctionalTest::tearDown in XML sitemap 8
Same name and namespace in other branches
- 2.x tests/src/Functional/XmlSitemapMenuFunctionalTest.php \Drupal\Tests\xmlsitemap\Functional\XmlSitemapMenuFunctionalTest::tearDown()
Overrides XmlSitemapTestBase::tearDown
File
- tests/
src/ Functional/ XmlSitemapMenuFunctionalTest.php, line 96
Class
- XmlSitemapMenuFunctionalTest
- Tests the generation of menu links.
Namespace
Drupal\Tests\xmlsitemap\FunctionalCode
public function tearDown() {
$bundles = $this->entityTypeBundleInfo
->getAllBundleInfo();
foreach ($bundles['menu_link_content'] as $bundle_id => $bundle) {
xmlsitemap_link_bundle_delete('menu_link_content', $bundle_id);
}
foreach ($bundles['menu'] as $bundle_id => $bundle) {
xmlsitemap_link_bundle_delete('menu', $bundle_id);
}
parent::tearDown();
}