Skip to content

Commit

Permalink
feat: add scripts for loading fixtures in test and dev environments
Browse files Browse the repository at this point in the history
chore: remove dev cache folder from project structure in IDE configuration
  • Loading branch information
idmarinas committed Jan 5, 2025
1 parent 4b55180 commit 839fe07
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .idea/IDMarinas Template Bundle.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/runConfigurations/Dev__Reload_DB.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/runConfigurations/Test__Reload_DB.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@
"Factory\\": "factories/"
}
},
"scripts": {
"test:fixtures:load": [
"php bin/console doctrine:schema:drop --env=test --force --ansi",
"php bin/console doctrine:schema:update --env=test --force --complete --ansi",
"php bin/console doctrine:fixtures:load --env=test -n --ansi"
],
"dev:fixtures:load": [
"php bin/console doctrine:schema:drop --env=dev --force --ansi",
"php bin/console doctrine:schema:update --env=dev --force --complete --ansi",
"php bin/console doctrine:fixtures:load --env=dev -n --ansi"
]
},
"funding": [
{
"type": "paypal",
Expand Down

0 comments on commit 839fe07

Please sign in to comment.