function ForumListingBreadcrumbBuilderTest::providerTestApplies
Same name in other branches
- 9 core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php \Drupal\Tests\forum\Unit\Breadcrumb\ForumListingBreadcrumbBuilderTest::providerTestApplies()
- 8.9.x core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php \Drupal\Tests\forum\Unit\Breadcrumb\ForumListingBreadcrumbBuilderTest::providerTestApplies()
- 11.x core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php \Drupal\Tests\forum\Unit\Breadcrumb\ForumListingBreadcrumbBuilderTest::providerTestApplies()
Provides test data for testApplies().
Return value
\Generator Datasets for testApplies(). Structured as such:
- ForumListBreadcrumbBuilder::applies() expected result.
- ForumListBreadcrumbBuilder::applies() $attributes input array.
File
-
core/
modules/ forum/ tests/ src/ Unit/ Breadcrumb/ ForumListingBreadcrumbBuilderTest.php, line 89
Class
- ForumListingBreadcrumbBuilderTest
- @coversDefaultClass \Drupal\forum\Breadcrumb\ForumListingBreadcrumbBuilder @group forum @group legacy
Namespace
Drupal\Tests\forum\Unit\BreadcrumbCode
public static function providerTestApplies() : \Generator {
(yield [
FALSE,
]);
(yield [
FALSE,
'NOT.forum.page',
]);
(yield [
FALSE,
'forum.page',
]);
(yield [
TRUE,
'forum.page',
[
[
'taxonomy_term',
'anything',
],
],
]);
(yield [
TRUE,
'forum.page',
[
[
'taxonomy_term',
TRUE,
],
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.