Skip to content

Commit a6e70b9

Browse files
committed
disable test dbname suffix in tests
1 parent 1c2276b commit a6e70b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Test/MakerTestDetails.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ public function configureDatabase(bool $createSchema = true): self
144144
)
145145
;
146146

147+
// Flex includes a recipe to suffix the dbname w/ "_test" - lets keep
148+
// things simple for these tests and not do that.
149+
$this->addReplacement(
150+
'config/packages/test/doctrine.yaml',
151+
"dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
152+
'')
153+
;
154+
147155
// this looks silly, but it's the only way to drop the database *for sure*,
148156
// as doctrine:database:drop will error if there is no database
149157
// also, skip for SQLITE, as it does not support --if-not-exists

0 commit comments

Comments
 (0)