function ComponentRenderTest::testRender

Same name in this branch
  1. 10 core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php \Drupal\Tests\sdc\Kernel\ComponentRenderTest::testRender()
Same name and namespace in other branches
  1. 11.x core/modules/sdc/tests/src/Kernel/ComponentRenderTest.php \Drupal\Tests\sdc\Kernel\ComponentRenderTest::testRender()
  2. 11.x core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php \Drupal\KernelTests\Components\ComponentRenderTest::testRender()

Test that components render correctly.

File

core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php, line 36

Class

ComponentRenderTest
Tests the correct rendering of components.

Namespace

Drupal\KernelTests\Components

Code

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.