loginAs($this->user); $this->assertResponseIsSuccessful(); $this->get('api/mobyt/status/1'); $this->assertResponseStatusCodeSame(Response::HTTP_OK); $this->assertResponseIsSuccessful(); } }