Skip to content

Commit

Permalink
BUGFIX: Add workspace hash to NodeDynamicTag_ and AssetDynamicTag_ ca…
Browse files Browse the repository at this point in the history
…che tags
  • Loading branch information
dlubitz committed Nov 28, 2023
1 parent eac9089 commit 27fc6cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public function setUp(): void

$this->mockContext = $this->getMockBuilder(Context::class)->disableOriginalConstructor()->getMock();
$this->mockContext->expects(self::any())->method('getWorkspace')->will(self::returnValue($this->mockWorkspace));
$this->mockContext->expects(self::any())->method('getWorkspaceName')->willReturnCallback(fn () => $this->mockWorkspace->getName());
$this->mockContext->expects(self::any())->method('getWorkspaceName')->willReturnCallback(function () {
return $this->mockWorkspace->getName();
});

$this->mockNode = $this->getMockBuilder(NodeInterface::class)->getMock();
$this->mockNode->expects(self::any())->method('getContext')->will(self::returnValue($this->mockContext));
Expand Down

0 comments on commit 27fc6cd

Please sign in to comment.