You are here

public function AggregatorTestBase::enableTestPlugins in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Tests/AggregatorTestBase.php \Drupal\aggregator\Tests\AggregatorTestBase::enableTestPlugins()

Enable the plugins coming with aggregator_test module.

3 calls to AggregatorTestBase::enableTestPlugins()
FeedFetcherPluginTest::setUp in core/modules/aggregator/src/Tests/FeedFetcherPluginTest.php
Sets up a Drupal site for running functional and integration tests.
FeedProcessorPluginTest::setUp in core/modules/aggregator/src/Tests/FeedProcessorPluginTest.php
Sets up a Drupal site for running functional and integration tests.
UpdateFeedItemTest::testUpdateFeedItem in core/modules/aggregator/src/Tests/UpdateFeedItemTest.php
Tests running "update items" from 'admin/config/services/aggregator' page.

File

core/modules/aggregator/src/Tests/AggregatorTestBase.php, line 368
Contains \Drupal\aggregator\Tests\AggregatorTestBase.

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\aggregator\Tests

Code

public function enableTestPlugins() {
  $this
    ->config('aggregator.settings')
    ->set('fetcher', 'aggregator_test_fetcher')
    ->set('parser', 'aggregator_test_parser')
    ->set('processors', array(
    'aggregator_test_processor' => 'aggregator_test_processor',
    'aggregator' => 'aggregator',
  ))
    ->save();
}