Fix for tests

This commit is contained in:
Hillel Coren 2016-09-21 21:26:25 +03:00
parent bcb5b7ca76
commit 0748d52144

View File

@ -15,7 +15,6 @@ use DateTime;
use stdClass; use stdClass;
use Carbon; use Carbon;
use WePay; use WePay;
use App\Models\Account;
class Utils class Utils
{ {
@ -1062,14 +1061,14 @@ class Utils
} elseif ($first == 'settings') { } elseif ($first == 'settings') {
if ($second == 'bank_accounts') { if ($second == 'bank_accounts') {
$page = ''; // TODO write docs $page = ''; // TODO write docs
} elseif (in_array($second, Account::$basicSettings)) { } elseif (in_array($second, \App\Models\Account::$basicSettings)) {
if ($second == 'products') { if ($second == 'products') {
$second = 'product_library'; $second = 'product_library';
} elseif ($second == 'notifications') { } elseif ($second == 'notifications') {
$second = 'email_notifications'; $second = 'email_notifications';
} }
$page = '/settings.html#' . str_replace('_', '-', $second); $page = '/settings.html#' . str_replace('_', '-', $second);
} elseif (in_array($second, Account::$advancedSettings)) { } elseif (in_array($second, \App\Models\Account::$advancedSettings)) {
$page = "/{$second}.html"; $page = "/{$second}.html";
} elseif ($second == 'customize_design') { } elseif ($second == 'customize_design') {
$page = '/invoice_design.html#customize'; $page = '/invoice_design.html#customize';