Table of Contents

tests/service/DataRequestServiceTest.php

Source: tests/service/DataRequestServiceTest.php · 478 lines, ~2070 statements · namespace: (global) · `declare(strict_types=1)`: no


Unit tests for DataRequestService.

The service orchestrates DataRequestDao, PrivacyLogDao and a notification mechanism. The injected DAOs and sanitizer are mocked; the internally created NotificationService is neutralised via reflection so no email is ever sent during unit tests.

Imports

Alias Fully-qualified name
TestCase PHPUnit\Framework\TestCase
AppException Scriptlog\Core\AppException
Sanitize Scriptlog\Core\Sanitize
CommentDao Scriptlog\Dao\CommentDao
DataRequestDao Scriptlog\Dao\DataRequestDao
PostDao Scriptlog\Dao\PostDao
PrivacyLogDao Scriptlog\Dao\PrivacyLogDao
UserDao Scriptlog\Dao\UserDao
DataRequestService Scriptlog\Service\DataRequestService
UserService Scriptlog\Service\UserService

Types declared here


Generated by 'tools/gendoc'.