You are here

public function ServiceTest::testIteration in Purge 8.3

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

Tests the \Iterator implementation.

See also

\Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService::current

\Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService::key

\Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService::next

\Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService::rewind

\Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsService::valid

File

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

Class

ServiceTest
Tests DiagnosticsService.

Namespace

Drupal\Tests\purge\Kernel\DiagnosticCheck

Code

public function testIteration() : void {
  $this
    ->initializeService();
  $this
    ->assertIterator([
    'queuersavailable',
    'purgersavailable',
    'maxage',
    'capacity',
    'processorsavailable',
    'memoryqueuewarning',
    'page_cache',
    'alwaysok',
    'alwaysinfo',
    'alwayserror',
    'alwayswarning',
    'queue_size',
  ], '\\Drupal\\purge\\Plugin\\Purge\\DiagnosticCheck\\DiagnosticCheckInterface');
}