You are here

public function BlockFormInBlockTest::testPlaceholders in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/Tests/BlockFormInBlockTest.php \Drupal\block\Tests\BlockFormInBlockTest::testPlaceholders()

Test the actual placeholders

File

core/modules/block/src/Tests/BlockFormInBlockTest.php, line 69
Contains \Drupal\block\Tests\BlockFormInBlockTest.

Class

BlockFormInBlockTest
Tests form in block caching.

Namespace

Drupal\block\Tests

Code

public function testPlaceholders() {
  $this
    ->drupalGet('test-multiple-forms');
  $placeholder = 'form_action_' . hash('crc32b', 'Drupal\\Core\\Form\\FormBuilder::prepareForm');
  $this
    ->assertText('Form action: ' . $placeholder, 'placeholder found.');
}