Tests statuses of configuration entities.
protected function statusTests() {
// Test a View can be enabled and disabled again (with a new view).
$view = $this
->loadView('backlinks');
// The view should already be disabled.
$view
->enable();
$this
->assertTrue($view
->isEnabled(), 'A view has been enabled.');
// Check the saved values.
$view
->save();
$config = config('views.view.backlinks')
->get();
$this
->assertFalse($config['disabled'], 'The changed disabled property was saved.');
// Disable the view.
$view
->disable();
$this
->assertFalse($view
->isEnabled(), 'A view has been disabled.');
// Check the saved values.
$view
->save();
$config = config('views.view.backlinks')
->get();
$this
->assertTrue($config['disabled'], 'The changed disabled property was saved.');
}