You are here

public function FeedsWebTestCase::assertPlugins in Feeds 6

Same name and namespace in other branches
  1. 7.2 tests/feeds.test \FeedsWebTestCase::assertPlugins()
  2. 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.

3 calls to FeedsWebTestCase::assertPlugins()
FeedsRSStoDataTest::test in tests/feeds_processor_data.test
Test node creation, refreshing/deleting feeds and feed items.
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 305
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_result(db_query("SELECT config FROM {feeds_importer} WHERE id = '%s'", $id)));
  $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');
}