public function testIndividualTicket() { $ticketId = factory(Ticket::class)->create()->id; //create new ticket $this->assertEquals(200, $this->call('get', 'v1/tickets/' . $ticketId)->status()); //find created ticket Ticket::destroy($ticketId); //delet created ticket $this->assertEquals(404, $this->call('get', 'v1/tickets/' . $ticketId)->status()); //find deleted one }