Skip to content

Commit 3572496

Browse files
committed
Flushed Redis after 'sql:drop' so the kernel rebuilds its container.
1 parent 1232953 commit 3572496

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.vortex/tests/phpunit/Functional/AhoyWorkflowTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@ public function testAhoyWorkflowProvisionFallbackToProfile(): void {
498498
$this->logSubstep('Drop the database to simulate a fresh environment');
499499
$this->cmd('ahoy drush sql:drop -y', txt: 'Database should be dropped successfully');
500500

501+
// Vortex's Redis settings put 'cache.container' on Redis, so the Drupal
502+
// kernel reuses the cached container (built from the pre-drop module set)
503+
// even after the DB is wiped. Flush Redis to force the kernel to rebuild
504+
// its container from the freshly-installed modules.
505+
$this->cmd('ahoy flush-redis', txt: 'Redis cache flushed so the kernel rebuilds its container');
506+
501507
$this->logSubstep('Provision without fallback should fail');
502508
$this->fileAddVar('.env', 'VORTEX_PROVISION_FALLBACK_TO_PROFILE', 0);
503509
$this->syncToContainer(['.env']);

0 commit comments

Comments
 (0)