mirror of
https://github.com/elyby/accounts.git
synced 2024-12-13 08:59:01 +05:30
29 lines
611 B
PHP
29 lines
611 B
PHP
<?php
|
|
namespace api\tests\functional\accounts;
|
|
|
|
use api\tests\_pages\AccountsRoute;
|
|
use api\tests\FunctionalTester;
|
|
|
|
class AcceptRulesCest {
|
|
|
|
/**
|
|
* @var AccountsRoute
|
|
*/
|
|
private $route;
|
|
|
|
public function _before(FunctionalTester $I) {
|
|
$this->route = new AccountsRoute($I);
|
|
}
|
|
|
|
public function testCurrent(FunctionalTester $I) {
|
|
$I->amAuthenticated('Veleyaba');
|
|
$this->route->acceptRules(9);
|
|
$I->canSeeResponseCodeIs(200);
|
|
$I->canSeeResponseIsJson();
|
|
$I->canSeeResponseContainsJson([
|
|
'success' => true,
|
|
]);
|
|
}
|
|
|
|
}
|