function DrupalTagsHandlingTestCase::testDrupalImplodeTags

Implode a series of tags.

File

modules/simpletest/tests/common.test, line 719

Class

DrupalTagsHandlingTestCase
Test drupal_explode_tags() and drupal_implode_tags().

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);
}

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