function TagsTest::testExplodeTags

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

Explodes a series of tags.

File

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

Class

TagsTest
Tests explosion and implosion of autocomplete tags.

Namespace

Drupal\Tests\Core\Common

Code

public function testExplodeTags() : void {
    $string = implode(', ', array_keys($this->validTags));
    $tags = Tags::explode($string);
    $this->assertEquals(array_values($this->validTags), $tags);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.