mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Use local db instead of constant migrating.
This commit is contained in:
129
composer.lock
generated
129
composer.lock
generated
@@ -8,20 +8,20 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "classpreloader/classpreloader",
|
"name": "classpreloader/classpreloader",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ClassPreloader/ClassPreloader.git",
|
"url": "https://github.com/ClassPreloader/ClassPreloader.git",
|
||||||
"reference": "f0bfbf71fb3335c9473f695d4d966ba2fb879a9f"
|
"reference": "0544616ba33fb2a6b792b3a7822650810c6d65d9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/ClassPreloader/ClassPreloader/zipball/f0bfbf71fb3335c9473f695d4d966ba2fb879a9f",
|
"url": "https://api.github.com/repos/ClassPreloader/ClassPreloader/zipball/0544616ba33fb2a6b792b3a7822650810c6d65d9",
|
||||||
"reference": "f0bfbf71fb3335c9473f695d4d966ba2fb879a9f",
|
"reference": "0544616ba33fb2a6b792b3a7822650810c6d65d9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"nikic/php-parser": "~1.0",
|
"nikic/php-parser": "^1.2.2",
|
||||||
"php": ">=5.3.3",
|
"php": ">=5.3.3",
|
||||||
"symfony/console": "~2.1",
|
"symfony/console": "~2.1",
|
||||||
"symfony/filesystem": "~2.1",
|
"symfony/filesystem": "~2.1",
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.2-dev"
|
"dev-master": "1.3-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"class",
|
"class",
|
||||||
"preload"
|
"preload"
|
||||||
],
|
],
|
||||||
"time": "2015-01-26 22:06:19"
|
"time": "2015-04-15 21:59:30"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "danielstjules/stringy",
|
"name": "danielstjules/stringy",
|
||||||
@@ -206,16 +206,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/annotations",
|
"name": "doctrine/annotations",
|
||||||
"version": "v1.2.3",
|
"version": "v1.2.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/annotations.git",
|
"url": "https://github.com/doctrine/annotations.git",
|
||||||
"reference": "eeda578cbe24a170331a1cfdf78be723412df7a4"
|
"reference": "b5202eb9e83f8db52e0e58867e0a46e63be8332e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/annotations/zipball/eeda578cbe24a170331a1cfdf78be723412df7a4",
|
"url": "https://api.github.com/repos/doctrine/annotations/zipball/b5202eb9e83f8db52e0e58867e0a46e63be8332e",
|
||||||
"reference": "eeda578cbe24a170331a1cfdf78be723412df7a4",
|
"reference": "b5202eb9e83f8db52e0e58867e0a46e63be8332e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -270,20 +270,20 @@
|
|||||||
"docblock",
|
"docblock",
|
||||||
"parser"
|
"parser"
|
||||||
],
|
],
|
||||||
"time": "2014-12-20 20:49:38"
|
"time": "2014-12-23 22:40:37"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/cache",
|
"name": "doctrine/cache",
|
||||||
"version": "v1.4.0",
|
"version": "v1.4.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/cache.git",
|
"url": "https://github.com/doctrine/cache.git",
|
||||||
"reference": "2346085d2b027b233ae1d5de59b07440b9f288c8"
|
"reference": "c9eadeb743ac6199f7eec423cb9426bc518b7b03"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/cache/zipball/2346085d2b027b233ae1d5de59b07440b9f288c8",
|
"url": "https://api.github.com/repos/doctrine/cache/zipball/c9eadeb743ac6199f7eec423cb9426bc518b7b03",
|
||||||
"reference": "2346085d2b027b233ae1d5de59b07440b9f288c8",
|
"reference": "c9eadeb743ac6199f7eec423cb9426bc518b7b03",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -294,13 +294,13 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">=3.7",
|
"phpunit/phpunit": ">=3.7",
|
||||||
"predis/predis": "~0.8",
|
"predis/predis": "~1.0",
|
||||||
"satooshi/php-coveralls": "~0.6"
|
"satooshi/php-coveralls": "~0.6"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.4.x-dev"
|
"dev-master": "1.5.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -340,25 +340,28 @@
|
|||||||
"cache",
|
"cache",
|
||||||
"caching"
|
"caching"
|
||||||
],
|
],
|
||||||
"time": "2015-01-15 20:38:55"
|
"time": "2015-04-15 00:11:59"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/collections",
|
"name": "doctrine/collections",
|
||||||
"version": "v1.2",
|
"version": "v1.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/collections.git",
|
"url": "https://github.com/doctrine/collections.git",
|
||||||
"reference": "b99c5c46c87126201899afe88ec490a25eedd6a2"
|
"reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/collections/zipball/b99c5c46c87126201899afe88ec490a25eedd6a2",
|
"url": "https://api.github.com/repos/doctrine/collections/zipball/6c1e4eef75f310ea1b3e30945e9f06e652128b8a",
|
||||||
"reference": "b99c5c46c87126201899afe88ec490a25eedd6a2",
|
"reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.2"
|
"php": ">=5.3.2"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~4.0"
|
||||||
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
@@ -375,17 +378,6 @@
|
|||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
|
||||||
"name": "Jonathan Wage",
|
|
||||||
"email": "jonwage@gmail.com",
|
|
||||||
"homepage": "http://www.jwage.com/",
|
|
||||||
"role": "Creator"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Guilherme Blanco",
|
|
||||||
"email": "guilhermeblanco@gmail.com",
|
|
||||||
"homepage": "http://www.instaclick.com"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Roman Borschel",
|
"name": "Roman Borschel",
|
||||||
"email": "roman@code-factory.org"
|
"email": "roman@code-factory.org"
|
||||||
@@ -394,11 +386,17 @@
|
|||||||
"name": "Benjamin Eberlei",
|
"name": "Benjamin Eberlei",
|
||||||
"email": "kontakt@beberlei.de"
|
"email": "kontakt@beberlei.de"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Guilherme Blanco",
|
||||||
|
"email": "guilhermeblanco@gmail.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Jonathan Wage",
|
||||||
|
"email": "jonwage@gmail.com"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Johannes Schmitt",
|
"name": "Johannes Schmitt",
|
||||||
"email": "schmittjoh@gmail.com",
|
"email": "schmittjoh@gmail.com"
|
||||||
"homepage": "https://github.com/schmittjoh",
|
|
||||||
"role": "Developer of wrapped JMSSerializerBundle"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Collections Abstraction library",
|
"description": "Collections Abstraction library",
|
||||||
@@ -408,7 +406,7 @@
|
|||||||
"collections",
|
"collections",
|
||||||
"iterator"
|
"iterator"
|
||||||
],
|
],
|
||||||
"time": "2014-02-03 23:07:43"
|
"time": "2015-04-14 22:21:58"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/common",
|
"name": "doctrine/common",
|
||||||
@@ -3027,23 +3025,23 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpspec/phpspec",
|
"name": "phpspec/phpspec",
|
||||||
"version": "2.1.1",
|
"version": "2.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpspec/phpspec.git",
|
"url": "https://github.com/phpspec/phpspec.git",
|
||||||
"reference": "66a1df93099282b1514e9e001fcf6e9393f7783d"
|
"reference": "9727d75919a00455433e867565bc022f0b985a39"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpspec/phpspec/zipball/66a1df93099282b1514e9e001fcf6e9393f7783d",
|
"url": "https://api.github.com/repos/phpspec/phpspec/zipball/9727d75919a00455433e867565bc022f0b985a39",
|
||||||
"reference": "66a1df93099282b1514e9e001fcf6e9393f7783d",
|
"reference": "9727d75919a00455433e867565bc022f0b985a39",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"doctrine/instantiator": "~1.0,>=1.0.1",
|
"doctrine/instantiator": "^1.0.1",
|
||||||
"php": ">=5.3.3",
|
"php": ">=5.3.3",
|
||||||
"phpspec/php-diff": "~1.0.0",
|
"phpspec/php-diff": "~1.0.0",
|
||||||
"phpspec/prophecy": "~1.1",
|
"phpspec/prophecy": "~1.4",
|
||||||
"sebastian/exporter": "~1.0",
|
"sebastian/exporter": "~1.0",
|
||||||
"symfony/console": "~2.3",
|
"symfony/console": "~2.3",
|
||||||
"symfony/event-dispatcher": "~2.1",
|
"symfony/event-dispatcher": "~2.1",
|
||||||
@@ -3052,9 +3050,11 @@
|
|||||||
"symfony/yaml": "~2.1"
|
"symfony/yaml": "~2.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"behat/behat": "~3.0,>=3.0.11",
|
"behat/behat": "^3.0.11",
|
||||||
"bossa/phpspec2-expect": "~1.0",
|
"bossa/phpspec2-expect": "~1.0",
|
||||||
"symfony/filesystem": "~2.1"
|
"phpunit/phpunit": "~4.4",
|
||||||
|
"symfony/filesystem": "~2.1",
|
||||||
|
"symfony/process": "~2.1"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"phpspec/nyan-formatters": "~1.0 – Adds Nyan formatters"
|
"phpspec/nyan-formatters": "~1.0 – Adds Nyan formatters"
|
||||||
@@ -3065,7 +3065,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.1.x-dev"
|
"dev-master": "2.2.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -3099,7 +3099,7 @@
|
|||||||
"testing",
|
"testing",
|
||||||
"tests"
|
"tests"
|
||||||
],
|
],
|
||||||
"time": "2015-01-09 13:21:45"
|
"time": "2015-04-18 16:22:51"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpspec/prophecy",
|
"name": "phpspec/prophecy",
|
||||||
@@ -3163,16 +3163,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
"version": "2.0.15",
|
"version": "2.0.16",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
||||||
"reference": "34cc484af1ca149188d0d9e91412191e398e0b67"
|
"reference": "934fd03eb6840508231a7f73eb8940cf32c3b66c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/34cc484af1ca149188d0d9e91412191e398e0b67",
|
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/934fd03eb6840508231a7f73eb8940cf32c3b66c",
|
||||||
"reference": "34cc484af1ca149188d0d9e91412191e398e0b67",
|
"reference": "934fd03eb6840508231a7f73eb8940cf32c3b66c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3221,7 +3221,7 @@
|
|||||||
"testing",
|
"testing",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2015-01-24 10:06:35"
|
"time": "2015-04-11 04:35:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-file-iterator",
|
"name": "phpunit/php-file-iterator",
|
||||||
@@ -3360,16 +3360,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-token-stream",
|
"name": "phpunit/php-token-stream",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
|
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
|
||||||
"reference": "db32c18eba00b121c145575fcbcd4d4d24e6db74"
|
"reference": "eab81d02569310739373308137284e0158424330"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/db32c18eba00b121c145575fcbcd4d4d24e6db74",
|
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/eab81d02569310739373308137284e0158424330",
|
||||||
"reference": "db32c18eba00b121c145575fcbcd4d4d24e6db74",
|
"reference": "eab81d02569310739373308137284e0158424330",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3405,20 +3405,20 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"tokenizer"
|
"tokenizer"
|
||||||
],
|
],
|
||||||
"time": "2015-01-17 09:51:32"
|
"time": "2015-04-08 04:46:07"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "4.6.1",
|
"version": "4.6.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "08b2aacdd8433abbba468f995d6d64b76a7a62ec"
|
"reference": "163232991e652e6efed2f8470326fffa61e848e2"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/08b2aacdd8433abbba468f995d6d64b76a7a62ec",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/163232991e652e6efed2f8470326fffa61e848e2",
|
||||||
"reference": "08b2aacdd8433abbba468f995d6d64b76a7a62ec",
|
"reference": "163232991e652e6efed2f8470326fffa61e848e2",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3457,9 +3457,6 @@
|
|||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"src/"
|
"src/"
|
||||||
],
|
|
||||||
"files": [
|
|
||||||
"src/Framework/Assert/Functions.php"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
@@ -3480,7 +3477,7 @@
|
|||||||
"testing",
|
"testing",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2015-04-03 13:46:59"
|
"time": "2015-04-11 05:23:21"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit-mock-objects",
|
"name": "phpunit/phpunit-mock-objects",
|
||||||
|
@@ -48,7 +48,7 @@ return [
|
|||||||
|
|
||||||
'sqlite' => [
|
'sqlite' => [
|
||||||
'driver' => 'sqlite',
|
'driver' => 'sqlite',
|
||||||
'database' => ':memory:',
|
'database' => __DIR__.'/../storage/database/testing.db',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
1
storage/database/.gitignore
vendored
Normal file
1
storage/database/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.db
|
@@ -31,9 +31,20 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
// if the database copy does not exist, call migrate.
|
// if the database copy does not exist, call migrate.
|
||||||
|
$copy = __DIR__.'/../storage/database/testing-copy.db';
|
||||||
|
$original = __DIR__.'/../storage/database/testing.db';
|
||||||
|
if (!file_exists($copy)) {
|
||||||
|
Log::debug('Created new database.');
|
||||||
|
touch($original);
|
||||||
|
Artisan::call('migrate');
|
||||||
|
copy($original, $copy);
|
||||||
|
} else {
|
||||||
|
if (file_exists($copy)) {
|
||||||
|
copy($copy, $original);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// if the database copy does exists, copy back as original.
|
||||||
|
|
||||||
// if the database copy does not exist, create it and copy back as original.
|
|
||||||
Artisan::call('migrate');
|
|
||||||
FactoryMuffin::loadFactories(__DIR__ . '/factories');
|
FactoryMuffin::loadFactories(__DIR__ . '/factories');
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -56,7 +67,10 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
|
||||||
// delete copy and original.
|
// delete copy original.
|
||||||
|
//$original = __DIR__.'/../storage/database/testing.db';
|
||||||
|
//unlink($original);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user