diff --git a/tests/src/Unit/EventSubscriber/CacheInvalidatorSubscriberTest.php b/tests/src/Unit/EventSubscriber/CacheInvalidatorSubscriberTest.php index 64110124..42f8320b 100644 --- a/tests/src/Unit/EventSubscriber/CacheInvalidatorSubscriberTest.php +++ b/tests/src/Unit/EventSubscriber/CacheInvalidatorSubscriberTest.php @@ -60,7 +60,12 @@ public function testInvalidProject() : void { $mock = $this->mockCacheInvalidator(); $environmentResolver = $this->getEnvironmentResolver('invalid_project'); $sut = new CacheTagInvalidatorSubscriber($mock, $environmentResolver); - $sut->onReceive(new PubSubMessage(['data' => ['tags' => ['node:123']]])); + $sut->onReceive(new PubSubMessage([ + 'data' => [ + 'tags' => ['node:123'], + 'instances' => [Project::ASUMINEN], + ], + ])); $this->assertArrayHasKey('node:123', $mock->tags); $this->assertEquals(1, $mock->checkSumResets); }