You are here

public function PatternsIndexesTestCase::testTagmodules in Patterns 7

Same name and namespace in other branches
  1. 7.2 tests/indexes/indexes.test \PatternsIndexesTestCase::testTagmodules()

File

tests/indexes/indexes.test, line 34
General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.

Class

PatternsIndexesTestCase
@file General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.

Code

public function testTagmodules() {
  $tagmodules = patterns_tagmodules_get_index(NULL, TRUE, TRUE);
  $this
    ->assertNotNull($tagmodules, 'Tagmodules should not be NULL');
  $nc = $this
    ->countComponents();
  $this
    ->assertTrue(count($tagmodules) >= $nc, 'Tagmodules should have at least one tag per component');
}