HEX
Server: Apache
System: Linux server3230.server-vps.com 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: lzgqnjwu (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/1122/cwd/tests/api/functional/UserCest.php
<?php

namespace tests\api\functional;

use tests\api\functional\base\ApiCest;
use tests\api\FunctionalTester;

class UserCest extends ApiCest
{
    // tests
    public function testUser(FunctionalTester $I)
    {
        $I->amOnPage('/v1/user');
        $I->see('user');
    }

    public function testUserAccess(FunctionalTester $I)
    {
        $I->deleteHeader('X-Api-Key');
        $I->amOnPage('/v1/user');
        $I->seeResponseCodeIs(401);
    }
}