function ComponentRenderTest::testRender
Same name in this branch
- 10 core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php \Drupal\KernelTests\Components\ComponentRenderTest::testRender()
Same name in other branches
- 11.x core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php \Drupal\Tests\sdc\Kernel\ComponentRenderTest::testRender()
- 11.x core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php \Drupal\KernelTests\Components\ComponentRenderTest::testRender()
Test that components render correctly.
File
-
core/
modules/ sdc/ tests/ src/ Kernel/ ComponentRenderTest.php, line 35
Class
- ComponentRenderTest
- Tests the correct rendering of components.
Namespace
Drupal\Tests\sdc\KernelCode
public function testRender() : void {
$this->checkIncludeDefaultContent();
$this->checkIncludeDataMapping();
$this->checkEmbedWithNested();
$this->checkPropValidation();
$this->checkArrayObjectTypeCast();
$this->checkNonExistingComponent();
$this->checkLibraryOverrides();
$this->checkAttributeMerging();
$this->checkRenderElementAlters();
$this->checkSlots();
$this->checkInvalidSlot();
$this->checkEmptyProps();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.