You are here

public function CtoolsUnitObjectCachePlugins::testFindSimpleCachePlugin in Chaos Tool Suite (ctools) 7

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

File

tests/object_cache_unit.test, line 99

Class

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

Code

public function testFindSimpleCachePlugin() {
  ctools_include('cache');

  // The simple plugin.
  $plugin = ctools_cache_find_plugin('simple');
  $this
    ->assertPluginFound($plugin, 'The Simple Cache plugin is present');
  $this
    ->assertValidCachePlugin($plugin[0], 'The Simple Cache plugin');

  // The simple plugin, with ::.
  $plugin = ctools_cache_find_plugin('simple::data');
  $this
    ->assertPluginFound($plugin, 'The Simple Cache plugin is present, with data');
}