function AutocompleteTagsUnitTest::testDrupalImplodeTags

Implodes a series of tags.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Common/AutocompleteTagsUnitTest.php, line 43
Definition of Drupal\system\Tests\Common\AutocompleteTagsUnitTest.

Class

AutocompleteTagsUnitTest
Tests drupal_explode_tags() and drupal_implode_tags().

Namespace

Drupal\system\Tests\Common

Code

function testDrupalImplodeTags() {
  $tags = array_values($this->validTags);

  // Let's explode and implode to our heart's content.
  for ($i = 0; $i < 10; $i++) {
    $string = drupal_implode_tags($tags);
    $tags = drupal_explode_tags($string);
  }
  $this
    ->assertTags($tags);
}