function RecipeFinderTest::testFinderYieldsRecipes
Tests that the finder yields Recipe objects.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeFinderTest.php, line 31
Class
- RecipeFinderTest
- Tests the recipe finder.
Namespace
Drupal\KernelTests\Core\RecipeCode
public function testFinderYieldsRecipes() : void {
foreach (new Finder($this->root . '/core/recipes') as $recipe) {
$this->assertInstanceOf(Recipe::class, $recipe);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.