function UninstallDefaultContentTest::expectedBlocks
Same name in other branches
- 8.9.x core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php \Drupal\Tests\demo_umami_content\Functional\UninstallDefaultContentTest::expectedBlocks()
- 10 core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php \Drupal\Tests\demo_umami_content\Functional\UninstallDefaultContentTest::expectedBlocks()
- 11.x core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php \Drupal\Tests\demo_umami_content\Functional\UninstallDefaultContentTest::expectedBlocks()
Returns the expected properties of this profile's custom blocks.
2 calls to UninstallDefaultContentTest::expectedBlocks()
- UninstallDefaultContentTest::assertImportedCustomBlock in core/
profiles/ demo_umami/ modules/ demo_umami_content/ tests/ src/ Functional/ UninstallDefaultContentTest.php - Assert block content are imported.
- UninstallDefaultContentTest::testReinstall in core/
profiles/ demo_umami/ modules/ demo_umami_content/ tests/ src/ Functional/ UninstallDefaultContentTest.php - Tests uninstalling content removes created entities.
File
-
core/
profiles/ demo_umami/ modules/ demo_umami_content/ tests/ src/ Functional/ UninstallDefaultContentTest.php, line 156
Class
- UninstallDefaultContentTest
- Tests that uninstalling default content removes created content.
Namespace
Drupal\Tests\demo_umami_content\FunctionalCode
protected function expectedBlocks() {
return [
[
'path' => '<front>',
'type' => 'banner_block',
'uuid' => '9aadf4a1-ded6-4017-a10d-a5e043396edf',
'unique_text' => 'A wholesome pasta bake is the ultimate comfort food.',
'image_css_selector' => '#block-umami-banner-home img',
'image_alt_text' => 'Mouth watering vegetarian pasta bake with rich tomato sauce and cheese toppings',
],
[
'path' => '/recipes',
'type' => 'banner_block',
'uuid' => '4c7d58a3-a45d-412d-9068-259c57e40541',
'unique_text' => 'These sumptuous brownies should be gooey on the inside and crisp on the outside. A perfect indulgence!',
'image_css_selector' => '#block-umami-banner-recipes img',
'image_alt_text' => 'A stack of chocolate and pecan brownies, sprinkled with pecan crumbs and crushed walnut, fresh out of the oven',
],
[
'path' => '/recipes',
'type' => 'disclaimer_block',
'uuid' => '9b4dcd67-99f3-48d0-93c9-2c46648b29de',
'unique_text' => 'is a fictional magazine and publisher for illustrative purposes only',
],
[
'path' => '/recipes',
'type' => 'footer_promo_block',
'uuid' => '924ab293-8f5f-45a1-9c7f-2423ae61a241',
'unique_text' => 'Magazine exclusive articles, recipes and plenty of reasons to get your copy today.',
'image_css_selector' => '#block-umami-footer-promo img',
'image_alt_text' => '3 issue bundle of the Umami food magazine',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.