function AggregatorTestBase::enableTestPlugins

Same name in this branch
  1. 8.9.x core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::enableTestPlugins()
Same name in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php \Drupal\Tests\aggregator\Functional\AggregatorTestBase::enableTestPlugins()

Enable the plugins coming with aggregator_test module.

File

core/modules/aggregator/src/Tests/AggregatorTestBase.php, line 392

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', [
        'aggregator_test_processor' => 'aggregator_test_processor',
        'aggregator' => 'aggregator',
    ])
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.