a6a169c085
Generic: Repo Health / Site Health (push) Has been skipped
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 2s
Generic: Repo Health / Access control (push) Successful in 1s
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
PHPUnit Setup (#43): - Added phpunit/phpunit ^10.5 to composer.json require-dev - Created phpunit.xml with Unit test suite targeting Helper directory - Created tests/bootstrap.php with Joomla stub classes for isolated testing (Factory, ComponentHelper, Registry, OutputFilter, Uri) - PSR-4 autoload-dev for MokoJoomCommunity\Tests namespace Test Cases (5 test files, 35+ test methods): - RegGuardHelperTest: birthday validation (valid, future, too young, too old, suspicious pattern, empty, invalid), username checks (normal, short, excessive digits, mostly digits, custom pattern), email domain checks (blocked, allowed, not in allowlist, empty), risk scoring and classification, suggestion generation, IP detection - ConditionalHelperTest: all 8 operators (equals, not_equals, contains, empty, not_empty, greater_than, in, regex), match modes (all, any), empty conditions, missing field handling - ProgressHelperTest: progress bar HTML output, public static method signature - PrivacyHelperTest: level constants, labels, map coverage - TaxServiceTest: exclusive/inclusive tax, zero tax, discount + tax, discount exceeding price, formatted breakdown Language File Completion (#44): - Added missing key COM_MOKOJOOMCOMMUNITY_FORUM_TOPIC - Synced en-US from en-GB for both site and admin - Audited: 108 used site keys, 138 defined (all covered) - Audited: 57 used membership keys, 130 defined (all covered) Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
811 B
XML
29 lines
811 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
* MokoJoomCommunity PHPUnit Configuration
|
|
* Copyright (C) 2026 Moko Consulting
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
-->
|
|
<phpunit
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
|
bootstrap="tests/bootstrap.php"
|
|
colors="true"
|
|
cacheDirectory=".phpunit.cache"
|
|
executionOrder="depends,defects"
|
|
requireCoverageMetadata="false"
|
|
beStrictAboutOutputDuringTests="true"
|
|
>
|
|
<testsuites>
|
|
<testsuite name="Unit">
|
|
<directory>tests/Unit</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
|
|
<source>
|
|
<include>
|
|
<directory>src/packages/com_mokojoomcommunity/src/Helper</directory>
|
|
</include>
|
|
</source>
|
|
</phpunit>
|