You are here

public function FeedsWebTestCase::assertPlugins in Feeds 7

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

File

tests/feeds.test.inc, line 288
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');
}