You are here

public function ServiceTest::testCount in Purge 8.3

Same name in this branch
  1. 8.3 tests/src/Kernel/Processor/ServiceTest.php \Drupal\Tests\purge\Kernel\Processor\ServiceTest::testCount()
  2. 8.3 tests/src/Kernel/TagsHeader/ServiceTest.php \Drupal\Tests\purge\Kernel\TagsHeader\ServiceTest::testCount()
  3. 8.3 tests/src/Kernel/Queuer/ServiceTest.php \Drupal\Tests\purge\Kernel\Queuer\ServiceTest::testCount()
  4. 8.3 tests/src/Kernel/DiagnosticCheck/ServiceTest.php \Drupal\Tests\purge\Kernel\DiagnosticCheck\ServiceTest::testCount()

Tests DiagnosticsService::count.

File

tests/src/Kernel/DiagnosticCheck/ServiceTest.php, line 121

Class

ServiceTest
Tests DiagnosticsService.

Namespace

Drupal\Tests\purge\Kernel\DiagnosticCheck

Code

public function testCount() : void {
  $this
    ->initializeService();
  $this
    ->assertTrue($this->service instanceof \Countable);
  $this
    ->assertEquals(12, count($this->service));
}