You are here

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

Test to see that we don't find plugins that aren't there.

File

tests/object_cache_unit.test, line 131

Class

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

Code

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

  // An imaginary foobarbaz plugin.
  $plugin = ctools_cache_find_plugin('foobarbaz');
  $this
    ->assertPluginNotFound($plugin, 'The Foobarbaz Cache plugin is absent');
  $plugin = ctools_cache_find_plugin('foobarbaz::data');
  $this
    ->assertPluginNotFound($plugin, 'The Foobarbaz Cache plugin is absent, with data');
}