You are here

function DrupalTagsHandlingTestCase::testDrupalExplodeTags in Drupal 7

Explode a series of tags.

File

modules/simpletest/tests/common.test, line 660
Tests for common.inc functionality.

Class

DrupalTagsHandlingTestCase
Test drupal_explode_tags() and drupal_implode_tags().

Code

function testDrupalExplodeTags() {
  $string = implode(', ', array_keys($this->validTags));
  $tags = drupal_explode_tags($string);
  $this
    ->assertTags($tags);
}