mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 09:00:07 +00:00
New unit tests to cover missed methods.
This commit is contained in:
@@ -1,21 +1,9 @@
|
||||
<?php
|
||||
$db = realpath(__DIR__ . '/_data') . '/db.sqlite';
|
||||
if(!file_exists($db)) {
|
||||
exec('touch '.$db);
|
||||
exec('php artisan migrate --seed --env=testing');
|
||||
exec('sqlite3 tests/_data/db.sqlite .dump > tests/_data/dump.sql');
|
||||
$db = realpath(__DIR__ . '/_data') . '/db.sqlite';
|
||||
$dump = realpath(__DIR__ . '/_data') . '/dump.sql';
|
||||
if (!file_exists($db)) {
|
||||
$out = [];
|
||||
exec('touch ' . $db);
|
||||
exec('php artisan migrate --seed --env=testing', $out);
|
||||
exec('sqlite3 tests/_data/db.sqlite .dump > tests/_data/dump.sql', $out);
|
||||
}
|
||||
|
||||
/**
|
||||
* Class resetToClean
|
||||
*/
|
||||
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