firefly-iii/tests/_bootstrap.php

21 lines
480 B
PHP
Raw Normal View History

2014-11-26 14:31:12 -06:00
<?php
2014-12-20 08:25:22 -06:00
$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');
}
/**
* Class resetToClean
*/
2014-12-13 02:36:30 -06:00
class resetToClean
{
/**
*
*/
static public function clean()
{
2014-12-20 08:00:53 -06:00
//exec('cp ' . realpath(__DIR__ . '/_data') . '/clean.sqlite ' . realpath(__DIR__ . '/_data') . '/testing.sqlite');
2014-12-13 02:36:30 -06:00
}
}