refactoring
This commit is contained in:
parent
cdd61fa77e
commit
ec89d97816
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue