mirror of
https://github.com/filegator/filegator.git
synced 2025-08-07 09:56:44 +02:00
14
.travis.yml
Normal file
14
.travis.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
language: php
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 7.1.3
|
||||||
|
- 7.2
|
||||||
|
- 7.3
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- cp configuration_sample.php configuration.php
|
||||||
|
- composer self-update
|
||||||
|
- composer install --no-interaction
|
||||||
|
|
||||||
|
script:
|
||||||
|
- vendor/bin/phpunit
|
@@ -31,9 +31,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^8.0",
|
"phpunit/phpunit": "^7.5",
|
||||||
"symfony/var-dumper": "^4.2",
|
"symfony/var-dumper": "^4.2",
|
||||||
"nunomaduro/phpinsights": "^1.0",
|
|
||||||
"league/flysystem-memory": "^1.0"
|
"league/flysystem-memory": "^1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2798
composer.lock
generated
2798
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -43,7 +43,7 @@ return [
|
|||||||
},
|
},
|
||||||
'database' => function () {
|
'database' => function () {
|
||||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||||
'mysql://root:milos@localhost:3360/filegator'
|
'mysql://root:password@localhost:3360/filegator'
|
||||||
);
|
);
|
||||||
|
|
||||||
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
|
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
|
||||||
@@ -134,7 +134,7 @@ return [
|
|||||||
// 'driver' => 'mysqli',
|
// 'driver' => 'mysqli',
|
||||||
// 'host' => 'localhost',
|
// 'host' => 'localhost',
|
||||||
// 'username' => 'root',
|
// 'username' => 'root',
|
||||||
// 'password' => 'milos',
|
// 'password' => 'password',
|
||||||
// 'database' => 'filegator',
|
// 'database' => 'filegator',
|
||||||
//],
|
//],
|
||||||
],
|
],
|
||||||
|
@@ -7,8 +7,7 @@
|
|||||||
"build": "vue-cli-service build --no-clean",
|
"build": "vue-cli-service build --no-clean",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"test:e2e": "vue-cli-service test:e2e",
|
"test:e2e": "vue-cli-service test:e2e",
|
||||||
"test:unit": "vue-cli-service test:unit",
|
"test:unit": "vue-cli-service test:unit"
|
||||||
"insight": "./vendor/bin/phpinsights -v -n > phpinsights.txt"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.9.0",
|
"@fortawesome/fontawesome-free": "^5.9.0",
|
||||||
|
@@ -61,7 +61,7 @@ class AppTest extends TestCase
|
|||||||
// another request with previous session
|
// another request with previous session
|
||||||
$request2 = Request::create(
|
$request2 = Request::create(
|
||||||
'?r=/',
|
'?r=/',
|
||||||
'GET',
|
'GET'
|
||||||
);
|
);
|
||||||
$request2->setSession($prev_session);
|
$request2->setSession($prev_session);
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ class AuthTest extends TestCase
|
|||||||
{
|
{
|
||||||
$request = Request::create(
|
$request = Request::create(
|
||||||
'?r=/notfound',
|
'?r=/notfound',
|
||||||
'GET',
|
'GET'
|
||||||
);
|
);
|
||||||
|
|
||||||
$app = $this->bootFreshApp(null, $request);
|
$app = $this->bootFreshApp(null, $request);
|
||||||
|
@@ -100,7 +100,7 @@ class RequestTest extends TestCase
|
|||||||
$request = Request::create(
|
$request = Request::create(
|
||||||
'/test?priority=10&something=else',
|
'/test?priority=10&something=else',
|
||||||
'POST',
|
'POST',
|
||||||
['param' => 'param1', 'priority' => 5],
|
['param' => 'param1', 'priority' => 5]
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals($request->all(), [
|
$this->assertEquals($request->all(), [
|
||||||
|
Reference in New Issue
Block a user