function TagsTest::testExplodeTags
Same name in other branches
- 11.x 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\CommonCode
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.