Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Korko
SecretSanta.fr
Commits
4b742ecf
Commit
4b742ecf
authored
Jan 03, 2017
by
Korko
Browse files
Add default connection in memory for testing
parent
2199da5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/database.php
View file @
4b742ecf
...
...
@@ -52,6 +52,12 @@ return [
'prefix'
=>
''
,
],
'testing'
=>
[
'driver'
=>
'sqlite'
,
'database'
=>
':memory:'
,
'prefix'
=>
''
,
],
'mysql'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
...
...
phpunit.xml
View file @
4b742ecf
...
...
@@ -21,6 +21,7 @@
</filter>
<php>
<env
name=
"APP_ENV"
value=
"testing"
/>
<env
name=
"DB_CONNECTION"
value=
"testing"
/>
<env
name=
"CACHE_DRIVER"
value=
"array"
/>
<env
name=
"SESSION_DRIVER"
value=
"array"
/>
<env
name=
"QUEUE_DRIVER"
value=
"sync"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment