public function FeedsWebTestCase::assertPlugins in Feeds 7.2
Same name and namespace in other branches
- 6 tests/feeds.test \FeedsWebTestCase::assertPlugins()
- 7 tests/feeds.test.inc \FeedsWebTestCase::assertPlugins()
Assert a feeds configuration's plugins.
@deprecated: Use setPlugin() instead.
@todo Refactor users of assertPlugin() and make them use setPugin() instead.
2 calls to FeedsWebTestCase::assertPlugins()
- FeedsUIUserInterfaceTestCase::testEditFeedConfiguration in feeds_ui/
feeds_ui.test - UI functionality tests on feeds_ui_overview(), feeds_ui_create_form(), Change plugins on feeds_ui_edit_page().
- FeedsWebTestCase::createImporterConfiguration in tests/
feeds.test - Create an importer configuration.
File
- tests/
feeds.test, line 427 - Common functionality for all Feeds tests.
Class
- FeedsWebTestCase
- Test basic Data API functionality.
Code
public function assertPlugins($id, $fetcher, $parser, $processor) {
// Assert actual configuration.
$config = unserialize(db_query("SELECT config FROM {feeds_importer} WHERE id = :id", array(
':id' => $id,
))
->fetchField());
$this
->assertEqual($config['fetcher']['plugin_key'], $fetcher, 'Correct fetcher');
$this
->assertEqual($config['parser']['plugin_key'], $parser, 'Correct parser');
$this
->assertEqual($config['processor']['plugin_key'], $processor, 'Correct processor');
}