You are here

public function MessageCheckAndDeleteWorkerTest::testEmptyData in Message 8

Tests that no errors occur if data is empty.

@covers ::processItem

File

tests/src/Kernel/Plugin/QueueWorker/MessageCheckAndDeleteWorkerTest.php, line 58

Class

MessageCheckAndDeleteWorkerTest
Tests the multi-valued field check and delete after entity deletion.

Namespace

Drupal\Tests\message\Kernel\Plugin\QueueWorker

Code

public function testEmptyData() {

  // We should never have had an item queued in the first place if it was
  // empty, but just to be sure that the queue doesn't explode if we did end
  // up with this scenario.
  $this
    ->createPlugin();
  $this->plugin
    ->processItem(NULL);
  $this->plugin
    ->processItem([]);
}