You are here

public function FeedsWebTestBase::assertPlugins in Feeds 8.2

Assert a feeds configuration's plugins.

@deprecated: Use setPlugin() instead.

@todo Refactor users of assertPlugin() and make them use setPugin() instead.

1 call to FeedsWebTestBase::assertPlugins()
FeedsWebTestBase::createImporterConfiguration in lib/Drupal/feeds/Tests/FeedsWebTestBase.php
Create an importer configuration.

File

lib/Drupal/feeds/Tests/FeedsWebTestBase.php, line 376
Common functionality for all Feeds tests.

Class

FeedsWebTestBase
Test basic Data API functionality.

Namespace

Drupal\feeds\Tests

Code

public function assertPlugins($id, $fetcher, $parser, $processor) {

  // Assert actual configuration.
  $config = config('feeds.importer.' . $id)
    ->get('config');
  $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');
}