You are here

public function DaysTest::testProcessNone in Message 8

Test processing zero message.

@covers ::process

File

tests/src/Unit/Plugin/MessagePurge/DaysTest.php, line 27

Class

DaysTest
Unit tests for the days purge plugin.

Namespace

Drupal\Tests\message\Unit\Plugin\MessagePurge

Code

public function testProcessNone() {
  $query = $this
    ->prophesize(QueryInterface::class)
    ->reveal();
  $request_stack = $this
    ->prophesize(RequestStack::class)
    ->reveal();
  $queue = $this
    ->prophesize(QueueInterface::class);
  $queue
    ->createItem(Argument::any())
    ->shouldNotBeCalled();
  $plugin = new Days([], 'days', [], $query, $queue
    ->reveal(), $request_stack);
  $plugin
    ->process([]);
}