From ddf22ca74e6192beba275aa88aedd140bc08991d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Thu, 2 Jul 2026 15:39:24 +0200 Subject: [PATCH] test(db): assert the daily-email index name, not just its columns Lock the explicit index name so a rename or accidental drop is caught, per review feedback that the existence check alone was too shallow. --- tests/Feature/OpenBanking/DailyEmailTransactionsIndexTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Feature/OpenBanking/DailyEmailTransactionsIndexTest.php b/tests/Feature/OpenBanking/DailyEmailTransactionsIndexTest.php index 03c3b021..b06c92c9 100644 --- a/tests/Feature/OpenBanking/DailyEmailTransactionsIndexTest.php +++ b/tests/Feature/OpenBanking/DailyEmailTransactionsIndexTest.php @@ -11,4 +11,5 @@ it('has a composite index supporting the daily synced-email transaction query', expect($match)->not->toBeNull( 'Expected a (user_id, source, created_at) index on transactions for the daily email query.' ); + expect($match['name'])->toBe('idx_transactions_user_source_created'); });