diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..fcdf61edc
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = space
+indent_size = 4
+trim_trailing_whitespace = true
\ No newline at end of file
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 2669537cb..e2d82d39d 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -15,31 +15,40 @@
tests/
- tests/SchemaTest.php
+ tests/SchemaTest.php
- tests/SeederTest.php
+ tests/SeederTest.php
- tests/CacheTest.php
+ tests/CacheTest.php
- tests/QueryBuilderTest.php
- tests/QueryTest.php
+ tests/QueryBuilderTest.php
+ tests/QueryTest.php
- tests/ModelTest.php
- tests/RelationsTest.php
+ tests/ModelTest.php
+ tests/RelationsTest.php
- tests/RelationsTest.php
- tests/EmbeddedRelationsTest.php
+ tests/RelationsTest.php
+ tests/EmbeddedRelationsTest.php
- tests/RelationsTest.php
+ tests/RelationsTest.php
- tests/ValidationTest.php
+ tests/ValidationTest.php
+
+
+
+
+
+
+
+
+
diff --git a/tests/QueueTest.php b/tests/QueueTest.php
index f3ebc94f6..7502ce6f7 100644
--- a/tests/QueueTest.php
+++ b/tests/QueueTest.php
@@ -24,6 +24,7 @@ public function testQueueJobLifeCycle()
'displayName' => 'test',
'job' => 'test',
'maxTries' => null,
+ 'delay' => null,
'timeout' => null,
'data' => ['action' => 'QueueJobLifeCycle'],
]), $job->getRawBody());
diff --git a/tests/config/database.php b/tests/config/database.php
index f24d20d2f..9c22bb05a 100644
--- a/tests/config/database.php
+++ b/tests/config/database.php
@@ -1,5 +1,8 @@
[
@@ -7,21 +10,21 @@
'mongodb' => [
'name' => 'mongodb',
'driver' => 'mongodb',
- 'host' => 'mongodb',
- 'database' => 'unittest',
+ 'host' => $mongoHost,
+ 'database' => env('MONGO_DATABASE', 'unittest'),
],
'dsn_mongodb' => [
'driver' => 'mongodb',
- 'dsn' => 'mongodb://mongodb:27017',
- 'database' => 'unittest',
+ 'dsn' => "mongodb://$mongoHost:$mongoPort",
+ 'database' => env('MONGO_DATABASE', 'unittest'),
],
'mysql' => [
'driver' => 'mysql',
- 'host' => 'mysql',
- 'database' => 'unittest',
- 'username' => 'root',
+ 'host' => env('MYSQL_HOST', 'mysql'),
+ 'database' => env('MYSQL_DATABASE', 'unittest'),
+ 'username' => env('MYSQL_USERNAME', 'root'),
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
diff --git a/tests/config/queue.php b/tests/config/queue.php
index 03bc12044..e8203d90b 100644
--- a/tests/config/queue.php
+++ b/tests/config/queue.php
@@ -2,7 +2,7 @@
return [
- 'default' => 'database',
+ 'default' => env('QUEUE_CONNECTION'),
'connections' => [
@@ -16,7 +16,7 @@
],
'failed' => [
- 'database' => 'mongodb',
+ 'database' => env('MONGO_DATABASE'),
'table' => 'failed_jobs',
],