You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1495,17 +1495,17 @@ public function testAssignMultipleOlas()
1495
1495
// assert - ola is associated to ticket - getOlasData()
1496
1496
$olas_data = $ticket->getOlasData();
1497
1497
$this->assertCount(3, $olas_data);
1498
-
$olas_ids = array_column($olas_data, 'id');
1498
+
$olas_ids = array_column($olas_data, 'olas_id');
1499
1499
$this->assertEqualsCanonicalizing($olas_ids, [$ola_tto->getID(), $ola_ttr1->getID(), $ola_ttr2->getID()]); // assert - ola is associated to ticket - getOlasData()
@@ -1763,7 +1769,7 @@ public function testLaChangeOnOLA(): void
1763
1769
->addAction('assign', 'olas_id', $la1->getID());
1764
1770
$this->createRule($builder);
1765
1771
1766
-
// First OLA is added on update
1772
+
// Second OLA is added on update
1767
1773
$builder = newRuleBuilder('Add second LA on update', RuleTicket::class);
1768
1774
$builder->setEntity($entity)
1769
1775
->setCondtion(RuleTicket::ONUPDATE)
@@ -1780,6 +1786,9 @@ public function testLaChangeOnOLA(): void
1780
1786
'content' => '',
1781
1787
]);
1782
1788
1789
+
// ticket just created, two ola should be associated, one for TTO and one for TTR
1790
+
$this->assertEquals(2, countElementsInTable(\Item_Ola::getTable(), ['items_id' => $ticket->getID()]), 'ajout de ola sur update ne fonctionne pas, fonctionne sur le add - tester sur le commit 8cb37d09567ba071dc74445cebbc84618072bf57 wip');
1791
+
1783
1792
// Create another ticket as a control subject that shouldn't be impacted
0 commit comments