@@ -2910,24 +2910,22 @@ public function testAssignChangeStatus()
29102910 $ this ->assertTrue ($ ticket_user ->getFromDB ($ ticket_user ->getId ()));
29112911
29122912 // check status (should still be ASSIGNED)
2913- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2914- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2915- ->isEqualto (\CommonITILObject::ASSIGNED );
2913+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2914+ $ this ->assertEquals (\CommonITILObject::ASSIGNED , (int ) $ ticket ->fields ['status ' ]);
29162915
29172916 // remove associated user
2918- $ this ->boolean ($ ticket ->update ([
2917+ $ this ->assertTrue ($ ticket ->update ([
29192918 'id ' => $ tickets_id ,
29202919 '_actors ' => [
29212920 'assign ' => []
29222921 ]
2923- ]))-> isTrue () ;
2922+ ]));
29242923 // check status (should be INCOMING)
2925- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2926- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2927- ->isEqualto (\CommonITILObject::INCOMING );
2924+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2925+ $ this ->assertEquals (\CommonITILObject::INCOMING , (int ) $ ticket ->fields ['status ' ]);
29282926
29292927 // add associated user
2930- $ this ->boolean ($ ticket ->update ([
2928+ $ this ->assertTrue ($ ticket ->update ([
29312929 'id ' => $ tickets_id ,
29322930 '_actors ' => [
29332931 'assign ' => [
@@ -2940,14 +2938,13 @@ public function testAssignChangeStatus()
29402938 ]
29412939 ]
29422940 ]
2943- ]))-> isTrue () ;
2941+ ]));
29442942 // check status (should be ASSIGNED)
2945- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2946- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2947- ->isEqualto (\CommonITILObject::ASSIGNED );
2943+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2944+ $ this ->assertEquals (\CommonITILObject::ASSIGNED , (int ) $ ticket ->fields ['status ' ]);
29482945
29492946 // replace associated user
2950- $ this ->boolean ($ ticket ->update ([
2947+ $ this ->assertTrue ($ ticket ->update ([
29512948 'id ' => $ tickets_id ,
29522949 '_actors ' => [
29532950 'assign ' => [
@@ -2960,20 +2957,19 @@ public function testAssignChangeStatus()
29602957 ]
29612958 ]
29622959 ]
2963- ]))-> isTrue () ;
2960+ ]));
29642961 // check status (should still be ASSIGNED)
2965- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2966- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2967- ->isEqualto (\CommonITILObject::ASSIGNED );
2962+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2963+ $ this ->assertEquals (\CommonITILObject::ASSIGNED , (int ) $ ticket ->fields ['status ' ]);
29682964
29692965 // change status to WAITING
2970- $ this ->boolean ($ ticket ->update ([
2966+ $ this ->assertTrue ($ ticket ->update ([
29712967 'id ' => $ tickets_id ,
29722968 'status ' => \CommonITILObject::WAITING
2973- ]))-> isTrue () ;
2969+ ]));
29742970
29752971 // replace associated user
2976- $ this ->boolean ($ ticket ->update ([
2972+ $ this ->assertTrue ($ ticket ->update ([
29772973 'id ' => $ tickets_id ,
29782974 '_actors ' => [
29792975 'assign ' => [
@@ -2986,11 +2982,10 @@ public function testAssignChangeStatus()
29862982 ]
29872983 ]
29882984 ]
2989- ]))-> isTrue () ;
2985+ ]));
29902986 // check status (should still be WAITING)
2991- $ this ->boolean ($ ticket ->getFromDB ($ tickets_id ))->isTrue ();
2992- $ this ->integer ((int ) $ ticket ->fields ['status ' ])
2993- ->isEqualto (\CommonITILObject::WAITING );
2987+ $ this ->assertTrue ($ ticket ->getFromDB ($ tickets_id ));
2988+ $ this ->assertEquals (\CommonITILObject::WAITING , (int ) $ ticket ->fields ['status ' ]);
29942989 }
29952990
29962991 public function testClosedTicketTransfer ()
0 commit comments