mirror of
https://github.com/filegator/filegator.git
synced 2025-07-31 01:30:13 +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": {
|
||||
"phpunit/phpunit": "^8.0",
|
||||
"phpunit/phpunit": "^7.5",
|
||||
"symfony/var-dumper": "^4.2",
|
||||
"nunomaduro/phpinsights": "^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 () {
|
||||
$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);
|
||||
@@ -134,7 +134,7 @@ return [
|
||||
// 'driver' => 'mysqli',
|
||||
// 'host' => 'localhost',
|
||||
// 'username' => 'root',
|
||||
// 'password' => 'milos',
|
||||
// 'password' => 'password',
|
||||
// 'database' => 'filegator',
|
||||
//],
|
||||
],
|
||||
|
@@ -7,8 +7,7 @@
|
||||
"build": "vue-cli-service build --no-clean",
|
||||
"lint": "vue-cli-service lint",
|
||||
"test:e2e": "vue-cli-service test:e2e",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"insight": "./vendor/bin/phpinsights -v -n > phpinsights.txt"
|
||||
"test:unit": "vue-cli-service test:unit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.9.0",
|
||||
|
@@ -61,7 +61,7 @@ class AppTest extends TestCase
|
||||
// another request with previous session
|
||||
$request2 = Request::create(
|
||||
'?r=/',
|
||||
'GET',
|
||||
'GET'
|
||||
);
|
||||
$request2->setSession($prev_session);
|
||||
|
||||
|
@@ -109,7 +109,7 @@ class AuthTest extends TestCase
|
||||
{
|
||||
$request = Request::create(
|
||||
'?r=/notfound',
|
||||
'GET',
|
||||
'GET'
|
||||
);
|
||||
|
||||
$app = $this->bootFreshApp(null, $request);
|
||||
|
@@ -100,7 +100,7 @@ class RequestTest extends TestCase
|
||||
$request = Request::create(
|
||||
'/test?priority=10&something=else',
|
||||
'POST',
|
||||
['param' => 'param1', 'priority' => 5],
|
||||
['param' => 'param1', 'priority' => 5]
|
||||
);
|
||||
|
||||
$this->assertEquals($request->all(), [
|
||||
|
Reference in New Issue
Block a user