Clear once::instances()
This commit is contained in:
parent
8646e42c95
commit
4149ac5370
|
|
@ -242,7 +242,7 @@ class Peppol extends AbstractService
|
||||||
->getPeppol();
|
->getPeppol();
|
||||||
|
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
nlog("Unable to create Peppol Invoice" . $th->getMessage());
|
nlog("Unable to create Peppol Invoice - " . $th->getMessage());
|
||||||
$this->errors[] = $th->getMessage();
|
$this->errors[] = $th->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ class TaxRuleConsistencyTest extends TestCase
|
||||||
|
|
||||||
private function setupTestData(array $params = []): array
|
private function setupTestData(array $params = []): array
|
||||||
{
|
{
|
||||||
|
\Illuminate\Support\Once::flush();
|
||||||
|
|
||||||
$company_iso = isset($params['company_country']) ? $params['company_country'] : 'DE';
|
$company_iso = isset($params['company_country']) ? $params['company_country'] : 'DE';
|
||||||
|
|
||||||
$settings = CompanySettings::defaults();
|
$settings = CompanySettings::defaults();
|
||||||
|
|
@ -167,6 +169,8 @@ class TaxRuleConsistencyTest extends TestCase
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($scenarios as $name => $scenario) {
|
foreach ($scenarios as $name => $scenario) {
|
||||||
|
|
||||||
|
|
||||||
$data = $this->setupTestData($scenario['params']);
|
$data = $this->setupTestData($scenario['params']);
|
||||||
|
|
||||||
// Test BaseRule
|
// Test BaseRule
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue