quire / testing
Test Quire extensions and themes: a minimal test application, a PHPUnit base class and helpers.
Requires
- php: >=8.5
- doctrine/doctrine-bundle: ^3.0
- phpunit/phpunit: ^13.4
- quire/core: ^0.1
- symfony/browser-kit: ^8.1
- symfony/css-selector: ^8.1
- symfony/filesystem: ^8.1
- symfony/framework-bundle: ^8.1
- symfony/security-bundle: ^8.1
- symfony/twig-bundle: ^8.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-28 21:00:58 UTC
README
Tests for Quire extensions and themes: each test class runs a small Quire application with only the extensions it lists, against a test database, and every test is rolled back afterwards.
composer require --dev quire/testing
final class ReviewsTest extends Quire\Testing\ExtensionTestCase { protected static array $extensions = ['acme-reviews']; public function testListsReviews(): void { $this->client->request('GET', '/reviews'); self::assertResponseIsSuccessful(); } }
Helpers sign people in (signIn('editor')), create content in any state (content('post', 'Hello')->published()->create()) and changes waiting for review (changes($post)->submitted()->create()), and show what the audit log recorded during a test. AdminTestCase adds helpers for admin pages, and quire:demo:seed fills a site with a realistic demo, "Tournament News".
License: MIT.