public function testGetCode() { $this->assertEquals('authorization_code_123', $this->_authorizationCode->getCode()); }
/** * {@inheritdoc} * @see \InoOicServer\Session\Storage\StorageInterface::deleteAuthorizationCode() * @return AuthorizationCode */ public function deleteAuthorizationCode(AuthorizationCode $authorizationCode) { $sql = $this->getSql(); $delete = $sql->delete($this->_getAuthoriozationCodeTableName()); $delete->where(array(AuthorizationCode::FIELD_CODE => $authorizationCode->getCode())); $result = $this->executeSqlQuery($delete); }