function TagsTest::testImplodeTags
Implodes a series of tags.
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Common/ TagsTest.php, line 42  
Class
- TagsTest
 - Tests explosion and implosion of autocomplete tags.
 
Namespace
Drupal\Tests\Core\CommonCode
public function testImplodeTags() : void {
  $tags = array_values($this->validTags);
  // Let's explode and implode to our heart's content.
  for ($i = 0; $i < 10; $i++) {
    $string = Tags::implode($tags);
    $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.