public function DateRecurDefaultInterpreterTest::testDefaultInterpreter in Recurring Dates Field 8.2
Same name and namespace in other branches
- 3.x tests/src/Kernel/DateRecurDefaultInterpreterTest.php \Drupal\Tests\date_recur\Kernel\DateRecurDefaultInterpreterTest::testDefaultInterpreter()
- 3.0.x tests/src/Kernel/DateRecurDefaultInterpreterTest.php \Drupal\Tests\date_recur\Kernel\DateRecurDefaultInterpreterTest::testDefaultInterpreter()
- 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\KernelCode
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']);
}