protected function BaseTest::assertTestModulePlugins in Plug 7
Checks the behavior when enabling/disabling plug_test module.
Parameters
array $results: Array containing the base plugins defined in plug_example module.
array $extra: Array containing the extra plugins defined in plug_test module.
$path: Path to the test page.
$cid: Cache id related to the plugin type
2 calls to BaseTest::assertTestModulePlugins()
- ExtraTest::testAnnotatedDiscovery in modules/
plug_example/ lib/ Drupal/ plug_example/ Tests/ ExtraTest.php - Tests the annotated plugin discovery in multiple modules.
- ExtraTest::testYamlDiscovery in modules/
plug_example/ lib/ Drupal/ plug_example/ Tests/ ExtraTest.php - Tests the YAML plugin discovery in multiple modules.
File
- modules/
plug_example/ lib/ Drupal/ plug_example/ Tests/ BaseTest.php, line 122 - Contains Drupal\plug_example\Tests\BaseTest.
Class
Namespace
Drupal\plug_example\TestsCode
protected function assertTestModulePlugins(array $results, array $extra, $path, $cid) {
$modules = array(
'plug_test',
);
module_enable($modules);
cache_clear_all($cid, 'cache');
$this
->assertExamplePageResults(array_merge($results, $extra), $path);
module_disable($modules);
drupal_uninstall_modules($modules);
cache_clear_all($cid, 'cache');
$this
->assertExamplePageResults($results, $path);
}