Table of Contents

tests/api/integration/SearchApiIntegrationTest.php

Source: tests/api/integration/SearchApiIntegrationTest.php · 135 lines, ~625 statements · namespace: (global) · `declare(strict_types=1)`: no


SearchApi Integration Test

Database-backed integration tests for the SearchFinder engine against real seeded posts. Verifies result counts, pagination metadata and multi-word queries against tbl_posts' FULLTEXT index.

Note: the engine uses MATCH … AGAINST … IN BOOLEAN MODE, which matches whole tokens; prefix/partial matches (“sta” for “static”) are not supported unless a wildcard is appended, so full-word queries are asserted instead.

Includes

Mode Target Line
require require_once DIR . '/../ApiTestCase.php'; 16
require require_once DIR . '/../fixtures/ApiDataFixture.php'; 17

Types declared here


Generated by 'tools/gendoc'.