test(casts): add tests for ShopperEstablishmentCodeCast functionality test(casts): add tests for ShopperServiceCodeCast functionality test(casts): add tests for ShopperSiteCodeCast functionality test(dto): update ProductDtoTest to include additional fields test(dto): update SettingDtoTest to remove arcadiaSites assertions test(events): update AnOrderHasBeenPlacedTest to use value objects test(entities): update OrderTest to use value objects for employee details test(value-objects): update EmployeeUpsertDataTest to use value objects test(pagination): update PaginationTest to access value properties test(services): update AppCustomerAuthServiceTest to use CrmHashcode test(services): update CrmServiceTest to use CrmHashcode for customer retrieval
41 lines
1,013 B
PHP
41 lines
1,013 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use DG\BypassFinals;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Illuminate\Support\Facades\Http;
|
|
use PHPUnit\Framework\TestCase as BasePHPUnitTestCase;
|
|
use Tests\TestCase as LaravelTestCase;
|
|
|
|
BypassFinals::enable(bypassReadOnly: false, bypassFinal: true);
|
|
BypassFinals::denyPaths([
|
|
'*/app/Actions/*',
|
|
'*/app/Dto/*',
|
|
'*/app/Queries/*',
|
|
'*/domain/Models/*',
|
|
'*/shared/DDD/*',
|
|
]);
|
|
|
|
pest()
|
|
->extend(LaravelTestCase::class)
|
|
->use(RefreshDatabase::class)
|
|
->beforeEach(function (): void {
|
|
Http::preventStrayRequests();
|
|
})
|
|
->in('Feature');
|
|
|
|
pest()
|
|
->extend(LaravelTestCase::class)
|
|
->use(RefreshDatabase::class)
|
|
->in('Integration/WithApp');
|
|
|
|
pest()
|
|
->extend(BasePHPUnitTestCase::class)
|
|
->in('Integration/Standalones');
|
|
|
|
pest()
|
|
->extend(BasePHPUnitTestCase::class)
|
|
->in('Unit');
|
|
pest()->extend(LaravelTestCase::class)->in('Unit/App/Casts');
|
|
pest()->extend(LaravelTestCase::class)->in('Unit/Services');
|