function ProfileWithRecipesTest::testRecipeWasApplied
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalTests/Installer/ProfileWithRecipesTest.php \Drupal\FunctionalTests\Installer\ProfileWithRecipesTest::testRecipeWasApplied()
Tests that the recipes listed by the profile were applied.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ ProfileWithRecipesTest.php, line 31
Class
- ProfileWithRecipesTest
- Tests installing from a profile that also applies recipes.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testRecipeWasApplied() : void {
// The profile specified a module, which should have been installed.
$this->assertTrue(\Drupal::moduleHandler()->moduleExists('workflows'));
// It also applied a media type recipe.
$this->assertInstanceOf(MediaType::class, MediaType::load('audio'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.