| 123456789101112131415161718192021222324252627 |
- <?php
- declare(strict_types=1);
- namespace App\Tests\Controllers;
- use App\Controllers\TaskController;
- use PHPUnit\Framework\TestCase;
- /**
- * R01-N24 drift fence: TaskController shares the SprintController batch
- * cap. A bump in the constant has memory / DB-pressure implications under
- * attacker load — REVIEW_01.md §R01-N24 must move with it.
- */
- final class TaskControllerTest extends TestCase
- {
- public function testMaxBatchItemsConstantMatchesSprintController(): void
- {
- $this->assertSame(5000, TaskController::MAX_BATCH_ITEMS);
- // The two controllers cap independently but the audit suggested
- // a single bound; assert they have not drifted apart.
- $this->assertSame(
- \App\Controllers\SprintController::MAX_BATCH_ITEMS,
- TaskController::MAX_BATCH_ITEMS,
- );
- }
- }
|