class LayoutBuilderBreadcrumbAlterTest in Drupal 10
Tests layout_builder_system_breadcrumb_alter().
@group layout_builder
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \PHPUnit\Framework\TestCase implements ServiceProviderInterface uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, AssertContentTrait, ConfigTestTrait, ExtensionListTestTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings
- class \Drupal\KernelTests\Core\Entity\EntityKernelTestBase uses UserCreationTrait
- class \Drupal\Tests\layout_builder\Kernel\LayoutBuilderBreadcrumbAlterTest
- class \Drupal\KernelTests\Core\Entity\EntityKernelTestBase uses UserCreationTrait
Expanded class hierarchy of LayoutBuilderBreadcrumbAlterTest
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ LayoutBuilderBreadcrumbAlterTest.php, line 14
Namespace
Drupal\Tests\layout_builder\KernelView source
class LayoutBuilderBreadcrumbAlterTest extends EntityKernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'layout_builder',
'layout_discovery',
];
/**
* Check that there are no errors when alter called with null route match.
*/
public function testBreadcrumbAlterNullRouteMatch() {
$breadcrumb = new Breadcrumb();
$route_match = new NullRouteMatch();
layout_builder_system_breadcrumb_alter($breadcrumb, $route_match, []);
}
}