public function BlockFormInBlockTest::testPlaceholders in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/tests/src/Functional/BlockFormInBlockTest.php \Drupal\Tests\block\Functional\BlockFormInBlockTest::testPlaceholders()
- 10 core/modules/block/tests/src/Functional/BlockFormInBlockTest.php \Drupal\Tests\block\Functional\BlockFormInBlockTest::testPlaceholders()
Tests the actual placeholders.
File
- core/
modules/ block/ tests/ src/ Functional/ BlockFormInBlockTest.php, line 70
Class
- BlockFormInBlockTest
- Tests form in block caching.
Namespace
Drupal\Tests\block\FunctionalCode
public function testPlaceholders() {
$this
->drupalGet('test-multiple-forms');
$placeholder = 'form_action_' . Crypt::hashBase64('Drupal\\Core\\Form\\FormBuilder::prepareForm');
$this
->assertSession()
->pageTextContains('Form action: ' . $placeholder);
}