Skip to content

Commit

Permalink
UHF-9034: Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Oct 3, 2023
1 parent e057969 commit 150ee01
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 150ee01

Please sign in to comment.