You are here

public function PlaceholderResolverTest::testEmptyPlaceholders in Typed Data API enhancements 8

@covers ::scan

File

tests/src/Kernel/PlaceholderResolverTest.php, line 179

Class

PlaceholderResolverTest
Tests the placeholder resolver.

Namespace

Drupal\Tests\typed_data\Kernel

Code

public function testEmptyPlaceholders() {
  $text = 'text {{ }} text';
  $placeholders = $this->placeholderResolver
    ->scan($text);
  $this
    ->assertEquals([
    '' => [
      '' => '{{ }}',
    ],
  ], $placeholders);
}