You are here

public function AggregatorTestBase::enableTestPlugins in Drupal 9

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

Enable the plugins coming with aggregator_test module.

3 calls to AggregatorTestBase::enableTestPlugins()
FeedFetcherPluginTest::setUp in core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php
FeedProcessorPluginTest::setUp in core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php
UpdateFeedItemTest::testUpdateFeedItem in core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
Tests running "update items" from 'admin/config/services/aggregator' page.

File

core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php, line 404

Class

AggregatorTestBase
Defines a base class for testing the Aggregator module.

Namespace

Drupal\Tests\aggregator\Functional

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();
}