You are here

public function ServiceSmokeAndFireTest::testIsSystemShowingSmokeReturnsFalse in Purge 8.3

Tests \Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService::isSystemShowingSmoke()

File

tests/src/Kernel/DiagnosticCheck/ServiceSmokeAndFireTest.php, line 62

Class

ServiceSmokeAndFireTest
Tests \Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService.

Namespace

Drupal\Tests\purge\Kernel\DiagnosticCheck

Code

public function testIsSystemShowingSmokeReturnsFalse() : void {
  $this
    ->initializePurgersService([
    'idb' => 'b',
  ]);
  $this
    ->initializeService();
  $smoke = $this->service
    ->isSystemShowingSmoke();
  $this
    ->assertTrue(is_object($smoke));
  if (is_object($smoke)) {
    $this
      ->assertTrue($smoke instanceof DiagnosticCheckInterface);
  }
}