Skip to content

Commit 5bc2bc7

Browse files
committed
test(workflow): align unit log operation expectation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent cede746 commit 5bc2bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/php/Unit/Workflow/LogProfileFieldChangeOperationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testOnEventLogsEveryMatchingRule(): void {
7979
]);
8080

8181
$this->logger->expects($this->once())
82-
->method('notice')
82+
->method('warning')
8383
->with(
8484
'Profile field workflow rule matched',
8585
$this->callback(function (array $context): bool {
@@ -100,7 +100,7 @@ public function testOnEventLogsEveryMatchingRule(): void {
100100
public function testOnEventIgnoresUnsupportedEvents(): void {
101101
$ruleMatcher = $this->createMock(IRuleMatcher::class);
102102
$ruleMatcher->expects($this->never())->method('getFlows');
103-
$this->logger->expects($this->never())->method('notice');
103+
$this->logger->expects($this->never())->method('warning');
104104

105105
$this->operation->onEvent('unsupported', new Event(), $ruleMatcher);
106106
}

0 commit comments

Comments
 (0)