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\Processor\ProcessorsService::current

\Drupal\purge\Plugin\Purge\Processor\ProcessorsService::key

\Drupal\purge\Plugin\Purge\Processor\ProcessorsService::next

\Drupal\purge\Plugin\Purge\Processor\ProcessorsService::rewind

\Drupal\purge\Plugin\Purge\Processor\ProcessorsService::valid

File

tests/src/Kernel/Processor/ServiceTest.php, line 65

Class

ServiceTest
Tests \Drupal\purge\Plugin\Purge\Processor\ProcessorsService.

Namespace

Drupal\Tests\purge\Kernel\Processor

Code

public function testIteration() : void {
  $this
    ->initializeService();
  $this
    ->assertIterator([
    'a',
    'b',
  ], '\\Drupal\\purge\\Plugin\\Purge\\Processor\\ProcessorInterface');
}