public function testAuthorizeAccess() { $manipulator = new ApiAccountManipulator(self::$DI['app']['EM'], self::$DI['app']['repo.api-accounts']); $account = $manipulator->create(self::$DI['oauth2-app-user'], self::$DI['user']); $manipulator->authorizeAccess($account); $this->assertFalse($account->isRevoked()); }
public function testAuthorizeAccess() { $account = $this->sut->create(self::$DI['oauth2-app-user'], self::$DI['user']); $this->sut->authorizeAccess($account); $this->assertFalse($account->isRevoked()); }