You are here

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

@covers ::scan

File

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

Class

PlaceholderResolverTest
Tests the placeholder resolver.

Namespace

Drupal\Tests\typed_data\Kernel

Code

public function testNoPlaceholders() {
  $text = 'test text does not have any placeholders';
  $placeholders = $this->placeholderResolver
    ->scan($text);
  $this
    ->assertEquals([], $placeholders);
}