You are here

public function DrupalOrgTest::testDefaultConfiguration in Freelinking 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/Plugin/freelinking/DrupalOrgTest.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\DrupalOrgTest::testDefaultConfiguration()

Asserts that default configuration is expected.

File

tests/src/Unit/Plugin/freelinking/DrupalOrgTest.php, line 85

Class

DrupalOrgTest
Tests the drupalorg plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function testDefaultConfiguration() {
  $plugin = $this
    ->getPlugin();
  $expected = [
    'settings' => [
      'scrape' => TRUE,
      'node' => TRUE,
      'project' => TRUE,
    ],
  ];
  $this
    ->assertEquals($expected, $plugin
    ->defaultConfiguration());
}