mirror of
https://github.com/Heretek-AI/comic-easel-rest.git
synced 2026-10-12 02:03:35 +00:00
Companion REST API plugin for comic-easel. Exposes the comic CPT, the chapters/characters/locations taxonomies, and CEO plugin options over WP REST under the comic-easel/v1 namespace. Authenticated via WordPress Application Passwords for n8n-style automation. Includes: - CPT-args shim (includes/class-cpt-shim.php) flipping show_in_rest on comic + taxonomies - REST controller (includes/class-rest-controller.php) with 5 endpoints - Procedural helpers + endpoint callbacks (functions/) - PHPUnit + WP_Test_REST_TestCase tests (tests/) - Scoped phpcs config mirroring comic-easel - GitHub Actions CI (lint, test with SQLite, advisory phpcs) - bin/install-wp-tests.sh fetches WP core + sqlite drop-in + parent plugin Co-Authored-By: Claude <[email protected]>
16 lines
492 B
XML
16 lines
492 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
|
bootstrap="tests/bootstrap.php"
|
|
cacheDirectory=".phpunit.cache"
|
|
colors="true"
|
|
failOnWarning="true"
|
|
failOnNotice="true"
|
|
failOnDeprecation="true"
|
|
beStrictAboutOutputDuringTests="true">
|
|
<testsuites>
|
|
<testsuite name="comic-easel-rest">
|
|
<directory>tests</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
</phpunit> |