mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°7206 - Force DBUpdate() when a transition is asked, and it leads to the same state
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user