10.April 2026
This commit is contained in:
parent
a00c42e770
commit
f58c709945
208 changed files with 19280 additions and 2914 deletions
22
tests/Unit/Services/UtilCustomerReorderCartUrlTest.php
Normal file
22
tests/Unit/Services/UtilCustomerReorderCartUrlTest.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
use App\Services\Util;
|
||||
use Tests\TestCase;
|
||||
|
||||
uses(TestCase::class);
|
||||
|
||||
describe('isShopBaseUrlInvalidForUserCard', function () {
|
||||
it('lehnt leere Werte ab', function () {
|
||||
expect(Util::isShopBaseUrlInvalidForUserCard(null))->toBeTrue();
|
||||
expect(Util::isShopBaseUrlInvalidForUserCard(''))->toBeTrue();
|
||||
});
|
||||
|
||||
it('lehnt Portal-Host ab', function () {
|
||||
$portalHost = config('domains.domains.portal.host');
|
||||
expect(Util::isShopBaseUrlInvalidForUserCard('https://'.$portalHost))->toBeTrue();
|
||||
});
|
||||
|
||||
it('akzeptiert typischen User-Shop-Subdomain', function () {
|
||||
expect(Util::isShopBaseUrlInvalidForUserCard('https://testberater.'.config('app.domain').config('app.tld_care')))->toBeFalse();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue