mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Updated some tests, fixed some bugs.
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
<?php
|
||||
// This is global bootstrap for autoloading
|
||||
$db = realpath(__DIR__ . '/_data') . '/testing.sqlite';
|
||||
$db = realpath(__DIR__ . '/_data') . '/testing.sqlite';
|
||||
|
||||
if (!file_exists($db)) {
|
||||
exec('touch ' . $db);
|
||||
exec('php artisan migrate --seed --env=testing');
|
||||
}
|
||||
exec('cp ' . $db . ' ' . realpath(__DIR__ . '/_data') . '/clean.sqlite');
|
||||
|
||||
/**
|
||||
* Class resetToClean
|
||||
* @SuppressWarnings("CamelCase")
|
||||
*/
|
||||
class resetToClean
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
static public function clean()
|
||||
{
|
||||
exec('cp ' . realpath(__DIR__ . '/_data') . '/clean.sqlite ' . realpath(__DIR__ . '/_data') . '/testing.sqlite');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user