function CtoolsUnitObjectCachePlugins::testFindExportUICachePlugin

Test to see that we can find the standard export_ui plugin.

File

tests/object_cache_unit.test, line 115

Class

CtoolsUnitObjectCachePlugins
Test ctools_cache_find_plugin and the structure of the default cache plugins.

Code

public function testFindExportUICachePlugin() {
    ctools_include('cache');
    // The export plugin.
    $plugin = ctools_cache_find_plugin('export_ui');
    $this->assertPluginFound($plugin, 'The Export UI Cache plugin is present');
    $this->assertValidCachePlugin($plugin[0], 'The Export Cache plugin');
    // The export plugin, with ::.
    $plugin = ctools_cache_find_plugin('export_ui::data');
    $this->assertTrue(is_array($plugin), 'The Export UI Cache plugin is present, with data');
}