public function OnlyOneAdminToolbarTest::providerRebuildMenu in Allow a content type only once (Only One) 8
Data provider for testRebuildMenu().
Return value
array An array of arrays, each containing:
- 'content_type' - Content type machine name.
- 'content_types_list' - Array of content types machine names.
See also
testRebuildMenu()
File
- modules/
onlyone_admin_toolbar/ tests/ src/ Unit/ OnlyOneAdminToolbarTest.php, line 98
Class
- OnlyOneAdminToolbarTest
- Tests the Language class methods.
Namespace
Drupal\Tests\onlyone_admin_toolbar\UnitCode
public function providerRebuildMenu() {
$content_types_list = [
'page',
'forum',
'article',
];
$tests['configured content type'] = [
'page',
$content_types_list,
];
$tests['configured content type'] = [
'article',
$content_types_list,
];
$tests['not configured content type'] = [
'blog',
$content_types_list,
];
$tests['not configured content type'] = [
'log',
$content_types_list,
];
return $tests;
}