File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public function load_vars()
8585 if (is_null ($ this ->agent )) {
8686 // TODO: Generate fake agent
8787 if (\PanicHDMember::agents ()->count () > 0 ) {
88- $ this ->agent = \PanicHDMember::whereHas ('agentTickets ' )->inRandomOrder ()->agents ()->first ();
88+ $ this ->agent = \PanicHDMember::whereHas ('ticketsAsAgent ' )->inRandomOrder ()->agents ()->first ();
8989 }
9090 }
9191
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function testTicketShowEdit()
120120
121121 // Agent access to assigned ticket
122122 if (!is_null ($ this ->agent )) {
123- $ ticket = $ this ->agent ->agentTickets ()->inRandomOrder ()->first ();
123+ $ ticket = $ this ->agent ->ticketsAsAgent ()->inRandomOrder ()->first ();
124124
125125 $ response = $ this ->actingAs ($ this ->agent )->get (route ($ this ->main_route .'.show ' , ['ticket ' => $ ticket ->id ]));
126126 $ this ->versionAssertStatus ($ response , 200 );
You can’t perform that action at this time.
0 commit comments