Commit graph

8 commits

Author SHA1 Message Date
Claude
a332148056
fix: move config directives before definition finalization and use Mockery for CdnPurgeService stub
Some checks failed
CI / PHP 8.3 (push) Failing after 1m30s
CI / PHP 8.4 (push) Failing after 1m28s
- Move URI config calls before maybeGetRawHTMLDefinition() which
  finalizes the config and prevents further set() calls
- Use Mockery::mock()->shouldIgnoreMissing() for CdnPurgeService stub
  to satisfy type hint in ContentItemObserver

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 12:20:12 +00:00
Claude
ddf01c05b5
style: fix Pint violations in TestCase
Some checks failed
CI / PHP 8.3 (push) Failing after 1m27s
CI / PHP 8.4 (push) Failing after 1m26s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 12:09:26 +00:00
Claude
f20fd362d4
fix: bind CdnPurgeService stub instead of CdnManager
Some checks failed
CI / PHP 8.3 (push) Failing after 1m12s
CI / PHP 8.4 (push) Failing after 1m10s
The type-hinted constructor on CdnPurgeService requires
Plug\Cdn\CdnManager which doesn't exist in test env. Bind
the service itself with a no-op stub.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 12:06:04 +00:00
Claude
381a97aa03
fix: resolve test failures for HTMLPurifier and CdnManager
Some checks failed
CI / PHP 8.3 (push) Failing after 1m33s
CI / PHP 8.4 (push) Failing after 1m31s
HTMLPurifier: set HTML.DefinitionID and HTML.DefinitionRev which
are required when using maybeGetRawHTMLDefinition().

CdnManager: bind a stub in tests when Plug\Cdn\CdnManager class
is not available (external dependency not in test environment).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 11:57:46 +00:00
Claude
e7e7e5be89
fix: add factories, fix HtmlSanitiser HTML5 elements, fix TestCase
Some checks are pending
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
- Create Database/Factories for ContentWebhookEndpoint, ContentWebhookLog,
  ContentItem, ContentTaxonomy, ContentBrief
- Register HTML5 elements (section, article, figure, figcaption, mark)
  with HTMLPurifier custom definitions
- Use RefreshDatabase trait in TestCase with SQLite in-memory DB
- Update Pest.php to use custom Tests\TestCase

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 07:01:48 +00:00
Claude
4d66f0b101 ci: add php-tenant dependency for unit tests
Some checks failed
CI / PHP 8.3 (push) Failing after 1m29s
CI / PHP 8.4 (push) Failing after 1m31s
2026-02-23 06:43:13 +00:00
Claude
bd4837a46d test: fix TestCase to use Orchestra Testbench for CI
Some checks failed
CI / PHP 8.3 (push) Failing after 1m50s
CI / PHP 8.4 (push) Failing after 1m35s
2026-02-23 06:18:30 +00:00
Snider
c29badf6b7
Initial commit 2026-01-26 23:24:57 +00:00