You are here

public function TagsTest::explodeTags in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Common/TagsTest.php \Drupal\Tests\Core\Common\TagsTest::explodeTags()

Explodes a series of tags.

File

core/tests/Drupal/Tests/Core/Common/TagsTest.php, line 25

Class

TagsTest
Tests explosion and implosion of autocomplete tags.

Namespace

Drupal\Tests\Core\Common

Code

public function explodeTags() {
  $string = implode(', ', array_keys($this->validTags));
  $tags = Tags::explode($string);
  $this
    ->assertTags($tags);
}