function AssertContentTrait::getRawContent
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getRawContent()
- 10 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getRawContent()
- 8.9.x core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getRawContent()
Gets the current raw content.
2 calls to AssertContentTrait::getRawContent()
- MediaEmbedFilterTest::testAccessUnpublished in core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterTest.php - Tests that entity access is respected by embedding an unpublished entity.
- MediaEmbedFilterTest::testRecursionProtection in core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterTest.php - Tests recursive rendering protection.
File
-
core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php, line 50
Class
- AssertContentTrait
- Provides test methods to assert content.
Namespace
Drupal\KernelTestsCode
protected function getRawContent() {
return $this->content;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.