// Check that we have an array of data.
$this->
assertIsArray($this->definitions
);
// Check all plugin types.
foreach ($this->pluginTypes
as $type) { $this->
assertArrayHasKey($type,
$this->definitions
);
$this->
assertIsArray($this->definitions
[$type]);
$this->
assertNotEmpty($this->definitions
[$type], "Plugin type '
$type' should contain plugins."
);
} // Tests that the plugin list has not missed any types.
$diff =
array_diff(array_keys($this->definitions
),
$this->pluginTypes
);
$this->
assertEmpty($diff, 'All plugins were found and matched.'
);
} /**
* Tests creating instances of every views plugin.
*
* This will iterate through all plugins from _views_fetch_plugin_data(),
* filtering out deprecated plugins.
*/
public function testPluginInstances() { $this->
assertPluginInstances(FALSE
);
}