@@ -2737,24 +2737,22 @@ public function testAssignChangeStatus()
27372737 $ this ->assertTrue ($ ticket_user ->getFromDB ($ ticket_user ->getId ()));
27382738
27392739 // check status (should still be ASSIGNED)
2740- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2741- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2742- ->isEqualto (\CommonITILObject::ASSIGNED );
2740+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2741+ $ this ->assertEquals (\CommonITILObject::ASSIGNED , (int ) $ ticket ->fields ['status ' ]);
27432742
27442743 // remove associated user
2745- $ this ->boolean ($ ticket ->update ([
2744+ $ this ->assertTrue ($ ticket ->update ([
27462745 'id ' => $ tickets_id ,
27472746 '_actors ' => [
27482747 'assign ' => []
27492748 ]
2750- ]))-> isTrue () ;
2749+ ]));
27512750 // check status (should be INCOMING)
2752- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2753- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2754- ->isEqualto (\CommonITILObject::INCOMING );
2751+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2752+ $ this ->assertEquals (\CommonITILObject::INCOMING , (int ) $ ticket ->fields ['status ' ]);
27552753
27562754 // add associated user
2757- $ this ->boolean ($ ticket ->update ([
2755+ $ this ->assertTrue ($ ticket ->update ([
27582756 'id ' => $ tickets_id ,
27592757 '_actors ' => [
27602758 'assign ' => [
@@ -2767,14 +2765,13 @@ public function testAssignChangeStatus()
27672765 ]
27682766 ]
27692767 ]
2770- ]))-> isTrue () ;
2768+ ]));
27712769 // check status (should be ASSIGNED)
2772- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2773- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2774- ->isEqualto (\CommonITILObject::ASSIGNED );
2770+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2771+ $ this ->assertEquals (\CommonITILObject::ASSIGNED , (int ) $ ticket ->fields ['status ' ]);
27752772
27762773 // replace associated user
2777- $ this ->boolean ($ ticket ->update ([
2774+ $ this ->assertTrue ($ ticket ->update ([
27782775 'id ' => $ tickets_id ,
27792776 '_actors ' => [
27802777 'assign ' => [
@@ -2787,20 +2784,19 @@ public function testAssignChangeStatus()
27872784 ]
27882785 ]
27892786 ]
2790- ]))-> isTrue () ;
2787+ ]));
27912788 // check status (should still be ASSIGNED)
2792- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2793- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2794- ->isEqualto (\CommonITILObject::ASSIGNED );
2789+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2790+ $ this ->assertEquals (\CommonITILObject::ASSIGNED , (int ) $ ticket ->fields ['status ' ]);
27952791
27962792 // change status to WAITING
2797- $ this ->boolean ($ ticket ->update ([
2793+ $ this ->assertTrue ($ ticket ->update ([
27982794 'id ' => $ tickets_id ,
27992795 'status ' => \CommonITILObject::WAITING
2800- ]))-> isTrue () ;
2796+ ]));
28012797
28022798 // replace associated user
2803- $ this ->boolean ($ ticket ->update ([
2799+ $ this ->assertTrue ($ ticket ->update ([
28042800 'id ' => $ tickets_id ,
28052801 '_actors ' => [
28062802 'assign ' => [
@@ -2813,11 +2809,10 @@ public function testAssignChangeStatus()
28132809 ]
28142810 ]
28152811 ]
2816- ]))-> isTrue () ;
2812+ ]));
28172813 // check status (should still be WAITING)
2818- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2819- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2820- ->isEqualto (\CommonITILObject::WAITING );
2814+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2815+ $ this ->assertEquals (\CommonITILObject::WAITING , (int ) $ ticket ->fields ['status ' ]);
28212816 }
28222817
28232818 public function testClosedTicketTransfer ()
0 commit comments