| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Tests\Application\Access;
- use App\Tests\Application\OtWebTestCase;
- class AdminAccessTest extends OtWebTestCase
- {
- public function testGetAccessId(): void
- {
- $this->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);
- }
- }
|