Skip to content

Commit

Permalink
add .env.testing.example
Browse files Browse the repository at this point in the history
  • Loading branch information
hosmelq committed Dec 6, 2023
1 parent 3a52dcb commit 2bb24bf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .env.testing.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
APP_ENV=testing
APP_KEY=
APP_DEBUG=true

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=basic_crud_testing
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=array
QUEUE_CONNECTION=sync
SESSION_DRIVER=array

MAIL_MAILER=array

#

BCRYPT_ROUNDS=4

TELESCOPE_ENABLED=false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.env
.env.backup
.env.production
.env.testing
.phpunit.result.cache
Homestead.json
Homestead.yaml
Expand Down
8 changes: 0 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,5 @@
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
</phpunit>

0 comments on commit 2bb24bf

Please sign in to comment.