Skip to content

Commit

Permalink
Usa configurações do arquivo .env.testing
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Nov 22, 2018
1 parent 9f1f9fa commit 36acd1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .env.example
Expand Up @@ -6,6 +6,12 @@ APP_URL=http://localhost
APP_TIMEZONE=America/Sao_Paulo
APP_TRACK_ERROR=false

API_URI=http://localhost/module/Api/Regra
API_ACCESS_KEY=
API_SECRET_KEY=

CORE_EXT_CONFIGURATION_ENV="${APP_ENV}"

LEGACY_CODE=true
LEGACY_DISPLAY_ERRORS=false
LEGACY_PATH=ieducar
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@
/vendor
.env
.env.host
.env.testing
.php_cs.cache
docker-compose.yml
phinx.php
Expand Down
7 changes: 1 addition & 6 deletions phpunit.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
bootstrap="bootstrap/testing.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand All @@ -24,16 +24,11 @@
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_HOST" value="localhost"/>
<env name="DB_DATABASE" value="test"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="CORE_EXT_CONFIGURATION_ENV" value="testing" force="true"/>
<env name="API_URI" value="http://localhost/module/Api/Regra"/>
<env name="API_ACCESS_KEY" value=""/>
<env name="API_SECRET_KEY" value=""/>
</php>
</phpunit>

0 comments on commit 36acd1f

Please sign in to comment.