You are here

public function NodeRevisionsAutocleanTest::testModuleInitialConfiguration in Node Revisions Autoclean 8

Test initial configuration.

File

tests/src/Functional/NodeRevisionsAutocleanTest.php, line 180

Class

NodeRevisionsAutocleanTest
Class NodeRevisionsAutocleanTest.

Namespace

Drupal\Tests\node_revisions_autoclean\Functional

Code

public function testModuleInitialConfiguration() {
  $config = \Drupal::configFactory()
    ->get('node_revisions_autoclean.settings');
  $this
    ->assertNotNull($config
    ->get('enable_on_cron'), $this
    ->t("Configuration enable_on_cron missing in node_revisions_autoclean.settings"));
  $this
    ->assertNotNull($config
    ->get('enable_on_node_update'), $this
    ->t("Configuration enable_on_node_update missing in node_revisions_autoclean.settings"));
  $this
    ->assertEquals($config
    ->get('enable_on_cron'), 0);
  $this
    ->assertEquals($config
    ->get('enable_on_node_update'), 0);
}