1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fixes for phpunit

This commit is contained in:
David Bomba 2020-09-07 09:29:46 +10:00
parent e0c901c8df
commit f98319a1c1
3 changed files with 14 additions and 13 deletions

View File

@ -30,7 +30,7 @@ jobs:
MULTI_DB_ENABLED: false
NINJA_LICENSE: 123456
TRAVIS: true
MAIL_DRIVER: log
MAIL_MAILER: log
services:
mariadb:

View File

@ -31,10 +31,12 @@ class QueryLogging
*/
public function handle(Request $request, Closure $next)
{
$timeStart = microtime(true);
// Enable query logging for development
if (config('ninja.app_env') != 'production') {
DB::enableQueryLog();
$timeStart = microtime(true);
}
$response = $next($request);

21
composer.lock generated
View File

@ -1541,16 +1541,16 @@
},
{
"name": "egulias/email-validator",
"version": "2.1.19",
"version": "2.1.20",
"source": {
"type": "git",
"url": "https://github.com/egulias/EmailValidator.git",
"reference": "840d5603eb84cc81a6a0382adac3293e57c1c64c"
"reference": "f46887bc48db66c7f38f668eb7d6ae54583617ff"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/840d5603eb84cc81a6a0382adac3293e57c1c64c",
"reference": "840d5603eb84cc81a6a0382adac3293e57c1c64c",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/f46887bc48db66c7f38f668eb7d6ae54583617ff",
"reference": "f46887bc48db66c7f38f668eb7d6ae54583617ff",
"shasum": ""
},
"require": {
@ -1595,7 +1595,7 @@
"validation",
"validator"
],
"time": "2020-08-08T21:28:19+00:00"
"time": "2020-09-06T13:44:32+00:00"
},
{
"name": "fedeisas/laravel-mail-css-inliner",
@ -4364,16 +4364,16 @@
},
{
"name": "opis/closure",
"version": "3.5.6",
"version": "3.5.7",
"source": {
"type": "git",
"url": "https://github.com/opis/closure.git",
"reference": "e8d34df855b0a0549a300cb8cb4db472556e8aa9"
"reference": "4531e53afe2fc660403e76fb7644e95998bff7bf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/opis/closure/zipball/e8d34df855b0a0549a300cb8cb4db472556e8aa9",
"reference": "e8d34df855b0a0549a300cb8cb4db472556e8aa9",
"url": "https://api.github.com/repos/opis/closure/zipball/4531e53afe2fc660403e76fb7644e95998bff7bf",
"reference": "4531e53afe2fc660403e76fb7644e95998bff7bf",
"shasum": ""
},
"require": {
@ -4421,7 +4421,7 @@
"serialization",
"serialize"
],
"time": "2020-08-11T08:46:50+00:00"
"time": "2020-09-06T17:02:15+00:00"
},
{
"name": "paragonie/random_compat",
@ -11053,7 +11053,6 @@
"keywords": [
"tokenizer"
],
"abandoned": true,
"time": "2019-09-17T06:23:10+00:00"
},
{