N°7206 - Force DBUpdate() when a transition is asked, and it leads to the same state

This commit is contained in:
Eric Espie
2025-01-06 11:31:22 +01:00
parent 1e674d7bdc
commit 73bb80ebea
3 changed files with 12 additions and 6 deletions

View File

@@ -35,11 +35,9 @@ class TriggerOnStateEnterTest extends ItopDataTestCase
$oUserRequest = $this->GivenUserRequest('new');
$oUserRequest->ApplyStimulus('ev_assign');
$bTransitionned = $oUserRequest->ApplyStimulus('ev_reassign');
$this->assertTrue($bTransitionned, 'The stimulus should have been accepted');
return;
$bTransitioned = $oUserRequest->ApplyStimulus('ev_reassign');
$this->assertTrue($bTransitioned, 'The stimulus should have been accepted');
$this->MarkTestSkipped('This test fails because the trigger is not executed');
$this->AssertTriggerExecuted($iTrigger, 2, 'The trigger should have been executed twice');
}
public function testIsTriggeredOnNewObject()