You are here

public function FileTest::testDefaultConfiguration in Freelinking 4.0.x

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

Assert that defaultConfiguration is functional.

File

tests/src/Unit/Plugin/freelinking/FileTest.php, line 82

Class

FileTest
Tests the freelinking file plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

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