public function MessageCheckAndDeleteWorkerTest::testAlreadyDeletedMessage in Message 8
Tests no errors occur when the messages given have already been deleted.
@covers ::processItem
File
- tests/
src/ Kernel/ Plugin/ QueueWorker/ MessageCheckAndDeleteWorkerTest.php, line 72
Class
- MessageCheckAndDeleteWorkerTest
- Tests the multi-valued field check and delete after entity deletion.
Namespace
Drupal\Tests\message\Kernel\Plugin\QueueWorkerCode
public function testAlreadyDeletedMessage() {
$this
->createPlugin();
$this->plugin
->processItem([
1 => [
'field_test',
],
]);
$this->plugin
->processItem([
8 => [
'field_test',
],
100 => [
'field_two',
'field_three',
],
245 => [
'field_zebra',
],
]);
}