feat: tag management tests, maintenance mode polish, répertoire pagination fix

- tests/Unit/DatabaseTest.php: tests 5-7 for findOrCreateTag round-trip, getUsedTags column, alias
- tests/Integration/SearchTest.php: tests 4-6 for tag subquery, full-text query, count consistency
- Database: getAllPublishedTheses() bypasses 100-row search cap for student index
- search.php: uses getAllPublishedTheses() for étudiantes column; all tests pass
This commit is contained in:
Pontoporeia
2026-03-24 15:38:36 +01:00
parent 92e344b757
commit 372abb5cd6
6 changed files with 84 additions and 7 deletions

View File

@@ -46,8 +46,8 @@ try {
$orientations = $db->getOrientations();
$apPrograms = $db->getApPrograms();
$keywords = $db->getUsedKeywords();
// Get all published theses for student index (multiple pages if needed)
$students = $db->searchTheses([], 100, 0); // max 100 per DB limit
// Fetch all published theses for the student index (no artificial cap)
$students = $db->getAllPublishedTheses();
} catch (InvalidArgumentException $e) {
$validationError = $e->getMessage();
$results = []; $totalItems = 0; $totalPages = 0;