public function PatternsSystemTestCase::testModules in Patterns 7.2
Same name and namespace in other branches
- 7 tests/system/system.test \PatternsSystemTestCase::testModules()
File
- tests/
system/ system.test, line 46 - SimpleTests for the System component of Patterns.
Class
- PatternsSystemTestCase
- @file SimpleTests for the System component of Patterns.
Code
public function testModules() {
// Check for modules before running the pattern.
$this
->assertModule('aggregator', FALSE);
$this
->assertModule('forum', FALSE);
$this
->assertModule('overlay', TRUE);
$this
->assertModule('number', TRUE);
// Run the pattern.
parent::runFile('modules.yaml', 'Enable/disable modules', $this->system_tests_dir);
$this
->assertModule('aggregator', FALSE);
$this
->assertModule('forum', TRUE);
$this
->assertModule('overlay', FALSE);
$this
->assertModule('number', TRUE);
}