refactoring

This commit is contained in:
Steffen Mahler 2020-02-04 17:41:05 +01:00
parent cdd61fa77e
commit ec89d97816
2 changed files with 2 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class CartCest
function _before(FunctionalTester $I)
{
$this->country = Config::get('app.default_country') ?? 'DE';
$this->country = strtoupper(Config::get('app.default_country')) ?? 'DE';
$this->tax1 = $I->have(TaxRate::class, [
'country' => $this->country

View File

@ -16,10 +16,7 @@ class TaxCest
public function _before(UnitTester $I)
{
$country = Config::get('app.default_country');
if ($country === null) {
$country = 'DE';
}
$country = strtoupper(Config::get('app.default_country')) ?? 'DE';
$tax1 = $I->have(TaxRate::class, [
'country' => $country,