ldc-crm/tests/coverage/app/Models/Service.php.html

610 lines
465 KiB
HTML
Raw Normal View History

Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for /home/jeremy/projets/crm/app/Models/Service.php</title>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../_css/bootstrap.min.css?v=10.1.7" rel="stylesheet" type="text/css">
<link href="../../_css/octicons.css?v=10.1.7" rel="stylesheet" type="text/css">
<link href="../../_css/style.css?v=10.1.7" rel="stylesheet" type="text/css">
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<link href="../../_css/custom.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="../../index.html">/home/jeremy/projets/crm</a></li>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<li class="breadcrumb-item"><a href="../index.html">app</a></li>
<li class="breadcrumb-item"><a href="index.html">Models</a></li>
<li class="breadcrumb-item active">Service.php</li>
</ol>
</nav>
</div>
</div>
</div>
</header>
<div class="container-fluid">
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<td>&nbsp;</td>
<td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3"><div align="center"><strong>Lines</strong></div></td>
<td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
<td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
</thead>
<tbody>
<tr>
<td class="warning">Total</td>
<td class="warning big"> <div class="progress">
2023-10-06 15:00:42 +02:00
<div class="progress-bar bg-warning" role="progressbar" aria-valuenow="74.51" aria-valuemin="0" aria-valuemax="100" style="width: 74.51%">
<span class="sr-only">74.51% covered (warning)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
2023-10-06 15:00:42 +02:00
<td class="warning small"><div align="right">74.51%</div></td>
<td class="warning small"><div align="right">38&nbsp;/&nbsp;51</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%">
<span class="sr-only">50.00% covered (danger)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
2023-10-06 15:00:42 +02:00
<td class="danger small"><div align="right">50.00%</div></td>
<td class="danger small"><div align="right">5&nbsp;/&nbsp;10</div></td>
<td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
<td class="warning"><abbr title="App\Models\Service">Service</abbr></td>
<td class="warning big"> <div class="progress">
2023-10-06 15:00:42 +02:00
<div class="progress-bar bg-warning" role="progressbar" aria-valuenow="74.51" aria-valuemin="0" aria-valuemax="100" style="width: 74.51%">
<span class="sr-only">74.51% covered (warning)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
2023-10-06 15:00:42 +02:00
<td class="warning small"><div align="right">74.51%</div></td>
<td class="warning small"><div align="right">38&nbsp;/&nbsp;51</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%">
<span class="sr-only">50.00% covered (danger)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
2023-10-06 15:00:42 +02:00
<td class="danger small"><div align="right">50.00%</div></td>
<td class="danger small"><div align="right">5&nbsp;/&nbsp;10</div></td>
<td class="danger small">20.24</td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="success">&nbsp;<a href="#68"><abbr title="__construct(array $attributes)">__construct</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">2&nbsp;/&nbsp;2</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">1</td>
<td class="success" colspan="3"></td>
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="warning">&nbsp;<a href="#80"><abbr title="booted(): void">booted</abbr></a></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar bg-warning" role="progressbar" aria-valuenow="61.54" aria-valuemin="0" aria-valuemax="100" style="width: 61.54%">
<span class="sr-only">61.54% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">61.54%</div></td>
<td class="warning small"><div align="right">8&nbsp;/&nbsp;13</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">1.06</td>
<td class="danger" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="success">&nbsp;<a href="#107"><abbr title="brand(): Illuminate\Database\Eloquent\Relations\BelongsTo">brand</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">1</td>
<td class="success" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="danger">&nbsp;<a href="#117"><abbr title="servicesStats(): Illuminate\Database\Eloquent\Relations\HasMany">servicesStats</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">2</td>
<td class="danger" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="success">&nbsp;<a href="#132"><abbr title="getCacheBaseTags(): array">getCacheBaseTags</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">3&nbsp;/&nbsp;3</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">1</td>
<td class="success" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="danger">&nbsp;<a href="#144"><abbr title="generateBearerToken(): string">generateBearerToken</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;3</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">2</td>
<td class="danger" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="danger">&nbsp;<a href="#158"><abbr title="generateBearerPassword(): string">generateBearerPassword</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;3</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">2</td>
<td class="danger" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="success">&nbsp;<a href="#170"><abbr title="incrementStat(): void">incrementStat</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">2&nbsp;/&nbsp;2</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">1</td>
<td class="success" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="success">&nbsp;<a href="#183"><abbr title="getFromBearerToken(string $bearerToken): self">getFromBearerToken</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
2023-10-06 15:00:42 +02:00
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="92.31" aria-valuemin="0" aria-valuemax="100" style="width: 92.31%">
<span class="sr-only">92.31% covered (success)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
2023-10-06 15:00:42 +02:00
<td class="success small"><div align="right">92.31%</div></td>
<td class="success small"><div align="right">12&nbsp;/&nbsp;13</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</div>
</div>
</td>
2023-10-06 15:00:42 +02:00
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">5.01</td>
<td class="danger" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
<tr>
2023-10-06 15:00:42 +02:00
<td class="success">&nbsp;<a href="#239"><abbr title="authenticateApi(Illuminate\Http\Request $request): bool">authenticateApi</abbr></a></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">10&nbsp;/&nbsp;10</div></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<td class="success big"> <div class="progress">
<div class="progress-bar bg-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">3</td>
<td class="success" colspan="3"></td>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tr>
</tbody>
</table>
</div>
<table id="code" class="table table-borderless table-condensed">
<tbody>
<tr class=" d-flex"><td class="col-1 text-right"><a id="1" href="#1">1</a></td><td class="col-11 codeLine"><span class="default">&lt;?php</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="2" href="#2">2</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="3" href="#3">3</a></td><td class="col-11 codeLine"><span class="keyword">namespace</span><span class="default">&nbsp;</span><span class="default">App\Models</span><span class="keyword">;</span></td></tr>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="4" href="#4">4</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="5" href="#5">5</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">App\Jobs\SetServiceStats</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="6" href="#6">6</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">App\Lib\Helper</span><span class="keyword">;</span></td></tr>
2023-10-06 15:00:42 +02:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="7" href="#7">7</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">App\Traits\Models\ActivityLog</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="8" href="#8">8</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Database\Eloquent\Factories\HasFactory</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="9" href="#9">9</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Database\Eloquent\Model</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="10" href="#10">10</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Database\Eloquent\ModelNotFoundException</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="11" href="#11">11</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Http\Request</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="12" href="#12">12</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Support\Facades\Crypt</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="13" href="#13">13</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Support\Facades\Hash</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="14" href="#14">14</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Illuminate\Support\Str</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="15" href="#15">15</a></td><td class="col-11 codeLine"><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">Rennokki\QueryCache\Traits\QueryCacheable</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="16" href="#16">16</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="17" href="#17">17</a></td><td class="col-11 codeLine"><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="18" href="#18">18</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Id.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="19" href="#19">19</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$brand_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Foreign&nbsp;key&nbsp;Brand.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="20" href="#20">20</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nom.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="21" href="#21">21</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$bearer_token</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="22" href="#22">22</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$bearer_pwd</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="23" href="#23">23</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property&nbsp;\Carbon\Carbon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$bearer_token_date</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="24" href="#24">24</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property-read&nbsp;\Illuminate\Support\Carbon&nbsp;$created_at&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Created&nbsp;date.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="25" href="#25">25</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property-read&nbsp;\Illuminate\Support\Carbon&nbsp;$updated_at&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updated&nbsp;date.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="26" href="#26">26</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="27" href="#27">27</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property-read&nbsp;\App\Models\Brand&nbsp;&nbsp;&nbsp;&nbsp;$brand&nbsp;Brand&nbsp;BelongsTo&nbsp;relation.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="28" href="#28">28</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;@property-read&nbsp;\Illuminate\Database\Eloquent\Collection&lt;App\Models\ServiceStat&gt;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="29" href="#29">29</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*&nbsp;$servicesStats&nbsp;ServiceStat&nbsp;HasMany&nbsp;relation.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="30" href="#30">30</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="31" href="#31">31</a></td><td class="col-11 codeLine"><span class="keyword">class</span><span class="default">&nbsp;</span><span class="default">Service</span><span class="default">&nbsp;</span><span class="keyword">extends</span><span class="default">&nbsp;</span><span class="default">Model</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="32" href="#32">32</a></td><td class="col-11 codeLine"><span class="keyword">{</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="33" href="#33">33</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">ActivityLog</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="34" href="#34">34</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">HasFactory</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="35" href="#35">35</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">use</span><span class="default">&nbsp;</span><span class="default">QueryCacheable</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="36" href="#36">36</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="37" href="#37">37</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="38" href="#38">38</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;The&nbsp;timeout&nbsp;cache&nbsp;for&nbsp;this&nbsp;model</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="39" href="#39">39</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="40" href="#40">40</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;integer</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="41" href="#41">41</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="42" href="#42">42</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">protected</span><span class="default">&nbsp;</span><span class="default">$cacheFor</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">0</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="43" href="#43">43</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="44" href="#44">44</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="45" href="#45">45</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;The&nbsp;attributes&nbsp;that&nbsp;are&nbsp;mass&nbsp;assignable.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="46" href="#46">46</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="47" href="#47">47</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;string[]</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="48" href="#48">48</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="49" href="#49">49</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">protected</span><span class="default">&nbsp;</span><span class="default">$fillable</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="keyword">[</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="50" href="#50">50</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">'name'</span><span class="keyword">,</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="51" href="#51">51</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">'brand_id'</span><span class="keyword">,</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="52" href="#52">52</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="53" href="#53">53</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="54" href="#54">54</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="55" href="#55">55</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;The&nbsp;attributes&nbsp;that&nbsp;should&nbsp;be&nbsp;cast&nbsp;to&nbsp;native&nbsp;types.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="56" href="#56">56</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="57" href="#57">57</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;array</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="58" href="#58">58</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="59" href="#59">59</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">protected</span><span class="default">&nbsp;</span><span class="default">$casts</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="keyword">[</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="60" href="#60">60</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">'bearer_token_date'</span><span class="default">&nbsp;</span><span class="default">=&gt;</span><span class="default">&nbsp;</span><span class="default">'datetime'</span><span class="keyword">,</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="61" href="#61">61</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="62" href="#62">62</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="63" href="#63">63</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="64" href="#64">64</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Service.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="65" href="#65">65</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="66" href="#66">66</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$attributes</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="67" href="#67">67</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="68" href="#68">68</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">__construct</span><span class="keyword">(</span><span class="keyword">array</span><span class="default">&nbsp;</span><span class="default">$attributes</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="keyword">[</span><span class="keyword">]</span><span class="keyword">)</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="69" href="#69">69</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 70" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 71" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class=" d-flex"><td class="col-1 text-right"><a id="72" href="#72">72</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="73" href="#73">73</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="74" href="#74">74</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="75" href="#75">75</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="76" href="#76">76</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Perform&nbsp;any&nbsp;actions&nbsp;required&nbsp;after&nbsp;the&nbsp;model&nbsp;boots.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="77" href="#77">77</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="78" href="#78">78</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="79" href="#79">79</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="80" href="#80">80</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">protected</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">booted</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">void</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="81" href="#81">81</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 82" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class="danger d-flex"><td class="col-1 text-right"><a id="83" href="#83">83</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$model</span><span class="default">-&gt;</span><span class="default">generateBearerToken</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="84" href="#84">84</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$model</span><span class="default">-&gt;</span><span class="default">generateBearerPassword</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 85" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 86" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class=" d-flex"><td class="col-1 text-right"><a id="87" href="#87">87</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;*&nbsp;Flush&nbsp;Eloquent&nbsp;cache.</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="88" href="#88">88</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">self</span><span class="default">::</span><span class="default">flushQueryCache</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 89" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 90" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class=" d-flex"><td class="col-1 text-right"><a id="91" href="#91">91</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;*&nbsp;Flush&nbsp;Eloquent&nbsp;cache.</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="92" href="#92">92</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">self</span><span class="default">::</span><span class="default">flushQueryCache</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 93" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 94" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class=" d-flex"><td class="col-1 text-right"><a id="95" href="#95">95</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;*&nbsp;Flush&nbsp;Eloquent&nbsp;cache.</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="96" href="#96">96</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">self</span><span class="default">::</span><span class="default">flushQueryCache</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="91 tests cover line 97" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddleware&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailMissing&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailWrongFormat&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testTimestampMiddlewareCheckFailIfTooOld&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testApiThrottle&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&
<tr class=" d-flex"><td class="col-1 text-right"><a id="98" href="#98">98</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="99" href="#99">99</a></td><td class="col-11 codeLine"></td></tr>
2023-10-06 15:00:42 +02:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="100" href="#100">100</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;*&nbsp;RELATIONS</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="101" href="#101">101</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="102" href="#102">102</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="103" href="#103">103</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Brand&nbsp;BelongsTo&nbsp;relation.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="104" href="#104">104</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="105" href="#105">105</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;\Illuminate\Database\Eloquent\Relations\BelongsTo</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="106" href="#106">106</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="107" href="#107">107</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">brand</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">\Illuminate\Database\Eloquent\Relations\BelongsTo</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="108" href="#108">108</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 109" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class=" d-flex"><td class="col-1 text-right"><a id="110" href="#110">110</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="111" href="#111">111</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="112" href="#112">112</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="113" href="#113">113</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;ServiceStat&nbsp;hasMany&nbsp;relation.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="114" href="#114">114</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="115" href="#115">115</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;\Illuminate\Database\Eloquent\Relations\HasMany</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="116" href="#116">116</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="117" href="#117">117</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">servicesStats</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">\Illuminate\Database\Eloquent\Relations\HasMany</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="118" href="#118">118</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="119" href="#119">119</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$this</span><span class="default">-&gt;</span><span class="default">hasMany</span><span class="keyword">(</span><span class="default">ServiceStat</span><span class="default">::</span><span class="keyword">class</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="120" href="#120">120</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="121" href="#121">121</a></td><td class="col-11 codeLine"></td></tr>
2023-10-06 15:00:42 +02:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="122" href="#122">122</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;*&nbsp;METHODS</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="123" href="#123">123</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="124" href="#124">124</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="125" href="#125">125</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Set&nbsp;the&nbsp;base&nbsp;cache&nbsp;tags&nbsp;that&nbsp;will&nbsp;be&nbsp;present</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="126" href="#126">126</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;on&nbsp;all&nbsp;queries.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="127" href="#127">127</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
2023-10-06 15:00:42 +02:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="128" href="#128">128</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;This&nbsp;is&nbsp;used&nbsp;to&nbsp;flush&nbsp;caching</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="129" href="#129">129</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="130" href="#130">130</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="131" href="#131">131</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="132" href="#132">132</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">protected</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">getCacheBaseTags</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="keyword">array</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="133" href="#133">133</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="81 tests cover line 134" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li cla
<tr class="covered-by-large-tests popin d-flex"><td data-title="81 tests cover line 135" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li cla
<tr class="covered-by-large-tests popin d-flex"><td data-title="81 tests cover line 136" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testCustomerRelations&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li cla
<tr class=" d-flex"><td class="col-1 text-right"><a id="137" href="#137">137</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="138" href="#138">138</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="139" href="#139">139</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="140" href="#140">140</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Generates&nbsp;new&nbsp;bearer&nbsp;token.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="141" href="#141">141</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="142" href="#142">142</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="143" href="#143">143</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="144" href="#144">144</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">generateBearerToken</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">string</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="145" href="#145">145</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="146" href="#146">146</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$this</span><span class="default">-&gt;</span><span class="default">bearer_token</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">hash</span><span class="keyword">(</span><span class="default">'ripemd160'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">Str</span><span class="default">::</span><span class="default">uuid</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="147" href="#147">147</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$this</span><span class="default">-&gt;</span><span class="default">bearer_token_date</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">now</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="148" href="#148">148</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$this</span><span class="default">-&gt;</span><span class="default">bearer_token</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="149" href="#149">149</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="150" href="#150">150</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="151" href="#151">151</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="152" href="#152">152</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Generates&nbsp;new&nbsp;bearer&nbsp;password</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="153" href="#153">153</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;It&nbsp;store&nbsp;the&nbsp;crypted&nbsp;password&nbsp;in&nbsp;model</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="154" href="#154">154</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;and&nbsp;returns&nbsp;the&nbsp;plain&nbsp;password.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="155" href="#155">155</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="156" href="#156">156</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="157" href="#157">157</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="158" href="#158">158</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">generateBearerPassword</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">string</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="159" href="#159">159</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="160" href="#160">160</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$pwd</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">hash</span><span class="keyword">(</span><span class="default">'sha256'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">Str</span><span class="default">::</span><span class="default">uuid</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="161" href="#161">161</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$this</span><span class="default">-&gt;</span><span class="default">bearer_pwd</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">Crypt</span><span class="default">::</span><span class="default">encryptString</span><span class="keyword">(</span><span class="default">$pwd</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger d-flex"><td class="col-1 text-right"><a id="162" href="#162">162</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$pwd</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="163" href="#163">163</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="164" href="#164">164</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="165" href="#165">165</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="166" href="#166">166</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Increment&nbsp;API&nbsp;CRM&nbsp;Stat.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="167" href="#167">167</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="168" href="#168">168</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="169" href="#169">169</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="170" href="#170">170</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">incrementStat</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">void</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="171" href="#171">171</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="74 tests cover line 172" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsByBrand&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsByBrandSh
<tr class="covered-by-large-tests popin d-flex"><td data-title="74 tests cover line 173" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsByBrand&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsByBrandSh
<tr class=" d-flex"><td class="col-1 text-right"><a id="174" href="#174">174</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="175" href="#175">175</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="176" href="#176">176</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="177" href="#177">177</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Get&nbsp;Service&nbsp;from&nbsp;bearerToken&nbsp;with&nbsp;its&nbsp;brand.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="178" href="#178">178</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="179" href="#179">179</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$bearerToken</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="180" href="#180">180</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;\App\Models\Service</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="181" href="#181">181</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;\Illuminate\Database\Eloquent\ModelNotFoundException&nbsp;If&nbsp;the&nbsp;token&nbsp;matches&nbsp;no&nbsp;known&nbsp;service.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="182" href="#182">182</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="183" href="#183">183</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">getFromBearerToken</span><span class="keyword">(</span><span class="default">string</span><span class="default">&nbsp;</span><span class="default">$bearerToken</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">self</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="184" href="#184">184</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="78 tests cover line 185" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfD
<tr class=" d-flex"><td class="col-1 text-right"><a id="186" href="#186">186</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**&nbsp;@var&nbsp;\App\Models\Service&nbsp;$service&nbsp;*/</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="78 tests cover line 187" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfD
<tr class="covered-by-large-tests popin d-flex"><td data-title="78 tests cover line 188" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfD
<tr class=" d-flex"><td class="col-1 text-right"><a id="189" href="#189">189</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;*&nbsp;Keep&nbsp;compatibility&nbsp;with&nbsp;V1.</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="78 tests cover line 190" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfD
<tr class=" d-flex"><td class="col-1 text-right"><a id="191" href="#191">191</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;TODO:&nbsp;Remove&nbsp;this&nbsp;method&nbsp;when&nbsp;no&nbsp;more&nbsp;service&nbsp;will&nbsp;be&nbsp;in&nbsp;V1&nbsp;(hashed&nbsp;instead&nbsp;of&nbsp;encrypted).</span></td></tr>
2023-10-06 15:00:42 +02:00
<tr class="danger d-flex"><td class="col-1 text-right"><a id="192" href="#192">192</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$tokenEquals</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">Hash</span><span class="default">::</span><span class="default">check</span><span class="keyword">(</span><span class="default">$bearerToken</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$service</span><span class="default">-&gt;</span><span class="default">bearer_token</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="193" href="#193">193</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span><span class="default">&nbsp;</span><span class="keyword">else</span><span class="default">&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="78 tests cover line 194" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfD
<tr class=" d-flex"><td class="col-1 text-right"><a id="195" href="#195">195</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="78 tests cover line 196" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfD
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 197" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 198" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 199" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 200" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 201" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class=" d-flex"><td class="col-1 text-right"><a id="202" href="#202">202</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="203" href="#203">203</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="2 tests cover line 204" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV4\ApiTest::testAuthFailUnknownToken&lt;/li&gt;&lt;/ul&gt;" data-placement="top" data-html="true" class="col-1 text-right"><a id="204" href="#204">204</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">throw</span><span class="default">&nbsp;</span><span class="keyword">new</span><span class="default">&nbsp;</span><span class="default">ModelNotFoundException</span><span class="keyword">(</span><span class="default">'Could&nbsp;not&nbsp;find&nbsp;service&nbsp;from&nbsp;Service&nbsp;Token'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="205" href="#205">205</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="206" href="#206">206</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="207" href="#207">207</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="208" href="#208">208</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Authenticate&nbsp;the&nbsp;request&nbsp;for&nbsp;this&nbsp;service</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="209" href="#209">209</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
2023-10-06 15:00:42 +02:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="210" href="#210">210</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;This&nbsp;will&nbsp;check&nbsp;hash-mac&nbsp;and&nbsp;that&nbsp;the&nbsp;request&nbsp;is&nbsp;wellformed</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="211" href="#211">211</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="212" href="#212">212</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;The&nbsp;request&nbsp;should&nbsp;have&nbsp;the&nbsp;minimum&nbsp;following&nbsp;parameters</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="213" href="#213">213</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;-&nbsp;timestamp&nbsp;using&nbsp;format&nbsp;Y-m-d&nbsp;H:i:s,&nbsp;and&nbsp;must&nbsp;be&nbsp;UTC&nbsp;(Greenwich&nbsp;Mean&nbsp;Time)</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="214" href="#214">214</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;-&nbsp;bearerToken&nbsp;the&nbsp;public&nbsp;token&nbsp;generated&nbsp;by&nbsp;the&nbsp;crm</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="215" href="#215">215</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;-&nbsp;signature&nbsp;the&nbsp;hashmac&nbsp;signature&nbsp;of&nbsp;the&nbsp;request</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="216" href="#216">216</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="217" href="#217">217</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;Signature&nbsp;must&nbsp;be&nbsp;calculated&nbsp;with&nbsp;every&nbsp;parameter&nbsp;urlencode&nbsp;once&nbsp;only</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="218" href="#218">218</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;All&nbsp;parameters&nbsp;to&nbsp;calculate&nbsp;the&nbsp;signature&nbsp;must&nbsp;be&nbsp;sorted&nbsp;(natural&nbsp;sort&nbsp;asc)</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="219" href="#219">219</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="220" href="#220">220</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;Signature&nbsp;should&nbsp;look&nbsp;like</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="221" href="#221">221</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;*&nbsp;httpVerb\n</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="222" href="#222">222</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;*&nbsp;uri\n</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="223" href="#223">223</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;*&nbsp;queryString</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="224" href="#224">224</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="225" href="#225">225</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;httpVerb&nbsp;as&nbsp;well&nbsp;as&nbsp;uri&nbsp;must&nbsp;be&nbsp;lower&nbsp;case</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="226" href="#226">226</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;uri&nbsp;should&nbsp;include&nbsp;scheme,&nbsp;host&nbsp;and&nbsp;path&nbsp;and&nbsp;nothing&nbsp;else,&nbsp;if&nbsp;path&nbsp;is&nbsp;empty&nbsp;a&nbsp;trailing&nbsp;slash&nbsp;should&nbsp;be&nbsp;added</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="227" href="#227">227</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;eg:&nbsp;https://ldc-crm.fr/customer/1&nbsp;&nbsp;or&nbsp;&nbsp;https://ldc-crm.fr/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="228" href="#228">228</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;The&nbsp;query&nbsp;string&nbsp;shall&nbsp;be&nbsp;separated&nbsp;with&nbsp;'&amp;',&nbsp;eg&nbsp;param1=value1&amp;param2=value2</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="229" href="#229">229</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;Key&nbsp;names&nbsp;and&nbsp;values&nbsp;of&nbsp;the&nbsp;query&nbsp;string&nbsp;must&nbsp;be&nbsp;url&nbsp;encoded&nbsp;using&nbsp;RFC&nbsp;3986</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="230" href="#230">230</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;http://www.faqs.org/rfcs/rfc3986.html</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="231" href="#231">231</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;Signature&nbsp;must&nbsp;be&nbsp;hmac&nbsp;sha256&nbsp;using&nbsp;the&nbsp;private&nbsp;key&nbsp;generatedby&nbsp;the&nbsp;crm</span></td></tr>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="232" href="#232">232</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
2023-10-06 15:00:42 +02:00
<tr class=" d-flex"><td class="col-1 text-right"><a id="233" href="#233">233</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;!&nbsp;They&nbsp;should&nbsp;then&nbsp;be&nbsp;concat&nbsp;in&nbsp;a&nbsp;string&nbsp;separated&nbsp;by&nbsp;\n</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="234" href="#234">234</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="235" href="#235">235</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;\Illuminate\Http\Request&nbsp;$request</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="236" href="#236">236</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;boolean</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="237" href="#237">237</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@throws&nbsp;\App\Exceptions\Api\V4\CrmException&nbsp;If&nbsp;an&nbsp;error&nbsp;occurs.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="238" href="#238">238</a></td><td class="col-11 codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="239" href="#239">239</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">authenticateApi</span><span class="keyword">(</span><span class="default">Request</span><span class="default">&nbsp;</span><span class="default">$request</span><span class="keyword">)</span><span class="keyword">:</span><span class="default">&nbsp;</span><span class="default">bool</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="240" href="#240">240</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">{</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="241" href="#241">241</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;!&nbsp;Hack&nbsp;to&nbsp;prevent&nbsp;Laravel&nbsp;to&nbsp;cast&nbsp;empty&nbsp;strings&nbsp;to&nbsp;null&nbsp;or&nbsp;the&nbsp;opposite.</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="242" href="#242">242</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;!&nbsp;If&nbsp;cannot&nbsp;decode&nbsp;json&nbsp;user&nbsp;legacy&nbsp;all()&nbsp;method.</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 243" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 244" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 245" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class=" d-flex"><td class="col-1 text-right"><a id="246" href="#246">246</a></td><td class="col-11 codeLine"></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 247" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 248" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 249" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 250" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 251" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 252" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class=" d-flex"><td class="col-1 text-right"><a id="253" href="#253">253</a></td><td class="col-11 codeLine"></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="254" href="#254">254</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;!&nbsp;Très&nbsp;important&nbsp;hash_equals&nbsp;https://fr.wikipedia.org/wiki/Attaque_temporelle</span></td></tr>
<tr class="covered-by-large-tests popin d-flex"><td data-title="76 tests cover line 255" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ApiTest::testAuthFailWrongSignature&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderDefault&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\ArcadiaTest::testArcadiaSendOrderGame&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldWork&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongPassword&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfWrongEmail&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiAuthenticateCustomerShouldFailIfCustomerNotActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerShouldFailIfCustomerAlreadyExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiStoreCustomerValidationFailures&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testActivateCustomerAlreadyActivated&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiUpdateCustomerShouldFailWhenNothingChanges&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerByEmailOk&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiGetCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\CustomerTest::testApiCompletelyDestroyCustomer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswers&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionIndexWithAnswersWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testCustomerUnAnsweredIndex&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testUnAnsweredIndexWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswer&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\QuestionTest::testQuestionSetAnswerWhenCustomerNotFound&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOn&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptinOff&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSingleOptinShouldFailIfCustomerExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcode&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\SingleOptinTest::testSetSingleOptoutWithHashcodeFailsIfDoesNotExists&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;Tests\CRM\ApiV2\StatsTest::testStatsB
<tr class=" d-flex"><td class="col-1 text-right"><a id="256" href="#256">256</a></td><td class="col-11 codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class=" d-flex"><td class="col-1 text-right"><a id="257" href="#257">257</a></td><td class="col-11 codeLine"><span class="keyword">}</span></td></tr>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</tbody>
</table>
<footer>
<hr/>
<h4>Legend</h4>
<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
<p>
2023-10-06 15:00:42 +02:00
<small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 10.1.7</a> using <a href="https://www.php.net/" target="_top">PHP 8.2.10</a> and <a href="https://phpunit.de/">PHPUnit 10.4.0</a> at Fri Oct 6 15:56:10 CEST 2023.</small>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</p>
<a title="Back to the top" id="toplink" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M12 11L6 5l-6 6h12z"/></svg>
</a>
</footer>
</div>
<script src="../../_js/jquery.min.js?v=10.1.7" type="text/javascript"></script>
<script src="../../_js/popper.min.js?v=10.1.7" type="text/javascript"></script>
<script src="../../_js/bootstrap.min.js?v=10.1.7" type="text/javascript"></script>
<script src="../../_js/file.js?v=10.1.7" type="text/javascript"></script>
Version 3.0.0 This removes api authentification with token in favor of signature method. Refactorize code and clean up. It add more unit test plus code coverage in test/converage. - Added config.api.timestampTimeout - Added Helper::signRequest This calculates the request signature - Added more unit tests and extend code coverage. - Added rate limiter for web routes - Added RemoveSpaces Sanitizer on api requests - Added stress test suite - Changed AuthServiceProvider api-token to api-hmac - Changed CustomerSeeder to have at least of customer activated (for unit tests) - Changed used transation for saveing multiple models - Changed, in ServiceController generateApiToken to generateServicePassword - Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC value - Composer added brianium/paratest - Composer update - Fixed case where removing single optin could be the wrong one (not for the good service) - Fixed customer delete - Fixed customer would not be resolved by brand. - Fixed Really check that request is json checking body content, preventing sending malformed requests - Remove ApiError::needAuth - Removed api_token - Removed ApiController::authenticate - Removed config.api.tokenTimeout - Removed Header check or usage because of HAProxy doing weird stuff - Removed lock files from gitignore - Removed memcached dependency - Removed unused questions resources api routes - Removed workspace file Migrations - Added unique index on services.bearer_token - Changed customer_id on customer_answer is nullable - Changed services.bearer_pwd length to 312 (the size of the token) - Dropped services.api_token and service.api_token_date
2021-12-19 15:57:24 +01:00
</body>
</html>