Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:consentservicetest

tests/unit/ConsentServiceTest.php

Source: tests/unit/ConsentServiceTest.php · 245 lines, ~1008 statements · namespace: (global) · `declare(strict_types=1)`: no


Unit tests for ConsentService.

ConsentService is a thin orchestration layer over ConsentDao. Every public method must delegate to the injected DAO (or derive from its return value), so this suite uses a mocked ConsentDao and asserts delegation contracts.

Imports

Alias Fully-qualified name
TestCase PHPUnit\Framework\TestCase
ConsentDao Scriptlog\Dao\ConsentDao
ConsentService Scriptlog\Service\ConsentService

Types declared here


Generated by 'tools/gendoc'.

scriptlog/tests/consentservicetest.txt · Last modified: by admin