mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Working on tests
This commit is contained in:
parent
5fb8429c86
commit
3662bb11b0
@ -75,9 +75,9 @@ before_script:
|
||||
|
||||
script:
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance APICest.php
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance TaxRatesCest.php
|
||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance TaxRatesCest.php
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance CheckBalanceCest.php
|
||||
- php ./vendor/codeception/codeception/codecept run --debug acceptance ClientCest.php
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance ClientCest.php
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance ExpenseCest.php
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance CreditCest.php
|
||||
#- php ./vendor/codeception/codeception/codecept run --debug acceptance InvoiceCest.php
|
||||
|
@ -191,6 +191,7 @@ class StartupCheck
|
||||
Session::flash('message', 'Cache cleared');
|
||||
}
|
||||
foreach ($cachedTables as $name => $class) {
|
||||
\Log::info("Cache for {$name} is " . (Cache::has($name) ? 'SET' : 'NOT SET'));
|
||||
if (Input::has('clear_cache') || ! Cache::has($name)) {
|
||||
// check that the table exists in case the migration is pending
|
||||
if (! Schema::hasTable((new $class())->getTable())) {
|
||||
@ -207,6 +208,7 @@ class StartupCheck
|
||||
}
|
||||
$tableData = $class::orderBy($orderBy)->get();
|
||||
if (count($tableData)) {
|
||||
\Log::info("Setting cache for {$name}");
|
||||
Cache::forever($name, $tableData);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user