You are here

public function DateRecurDefaultInterpreterTest::testDefaultInterpreter in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Kernel/DateRecurDefaultInterpreterTest.php \Drupal\Tests\date_recur\Kernel\DateRecurDefaultInterpreterTest::testDefaultInterpreter()
  2. 3.0.x tests/src/Kernel/DateRecurDefaultInterpreterTest.php \Drupal\Tests\date_recur\Kernel\DateRecurDefaultInterpreterTest::testDefaultInterpreter()
  3. 3.1.x tests/src/Kernel/DateRecurDefaultInterpreterTest.php \Drupal\Tests\date_recur\Kernel\DateRecurDefaultInterpreterTest::testDefaultInterpreter()

Tests interpreter config is installed.

File

tests/src/Kernel/DateRecurDefaultInterpreterTest.php, line 37

Class

DateRecurDefaultInterpreterTest
Tests default installed interpreter.

Namespace

Drupal\Tests\date_recur\Kernel

Code

public function testDefaultInterpreter() {
  $config = \Drupal::config('date_recur.interpreter.default_interpreter');

  // Values will be an empty array if it doesn't exist.
  $values = $config
    ->get();
  $this
    ->assertEquals('default_interpreter', $values['id']);
}