loginAs($this->user); $this->assertResponseIsSuccessful(); $this->client->request('GET', '/api/my_profile/1', [], [], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->securityToken]); dd($this->client->getResponse()->getContent()); // echo "\n"; // var_dump($this->securityToken); // $this->assertResponseIsSuccessful(); } }