Skip to content

Commit

Permalink
Ignore Symfony deprecation notices in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobefu committed May 18, 2024
1 parent 906ae78 commit 19276d2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 35 deletions.
10 changes: 3 additions & 7 deletions .ddev/commands/web/phpunit
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env bash

if [ -f ./db/db.sqlite ]; then
rm ./db/db.sqlite
fi
export SIMPLETEST_BASE_URL="http://localhost"
export SYMFONY_DEPRECATIONS_HELPER="disabled"

touch ./db/db.sqlite

export DATABASE_URL="sqlite:///%kernel.project_dir%/db/db.sqlite"
./vendor/bin/phpunit -c web/core/phpunit.xml.dist web/profiles/contrib/nuxtify
./vendor/bin/phpunit -c web/core web/profiles/contrib/nuxtify
2 changes: 2 additions & 0 deletions .github/workflows/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ jobs:
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DATABASE_URL: sqlite:///%kernel.project_dir%/db/db.sqlite
SIMPLETEST_BASE_URL: "http://localhost"
SYMFONY_DEPRECATIONS_HELPER: "disabled"
run: vendor/bin/phpunit -c web/core/phpunit.xml.dist web/profiles/contrib/nuxtify
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
.DS_Store

/keys
/db
59 changes: 32 additions & 27 deletions composer.lock

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

0 comments on commit 19276d2

Please sign in to comment.