New unit tests to cover missed methods.

This commit is contained in:
James Cole
2015-01-01 12:06:42 +01:00
parent 3386c8b455
commit 8e892e7ea5
20 changed files with 276 additions and 105 deletions

View File

@@ -1,2 +1,8 @@
<?php
// Here you can initialize variables that will be available to your tests
$db = realpath(__DIR__ . '/../_data') . '/db.sqlite';
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);
}