loginAs($this->user); $this->assertResponseIsSuccessful(); $this->get('/api/admin-access/1'); $this->assertResponseStatusCodeSame(200); } public function testPutAccessId(): void { $this->loginAs($this->user); $this->assertResponseIsSuccessful(); $this->put('/api/admin-access/1', [ 'username' => 'tata' ]); $this->assertResponseStatusCodeSame(200); } }