+
+ // Check that cron does not run when saving the configuration form.
+ $this->assertEqual($cron_last, \Drupal::state()->get('system.cron_last'), 'Cron does not run when saving the configuration form.');
+
+ // Check that cron runs when triggered manually.
+ $this->drupalPostForm(NULL, [], 'Run cron');
+ $this->assertTrue($cron_last < \Drupal::state()->get('system.cron_last'), 'Cron runs when triggered manually.');