mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Fix tests
This commit is contained in:
@@ -27,6 +27,12 @@ use function is_string;
|
||||
*/
|
||||
abstract class AbstractAggregatorTest extends KernelTestCase
|
||||
{
|
||||
|
||||
public static function tearDownAfterClass(): void
|
||||
{
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
/**
|
||||
* provide data for `testAliasDidNotDisappears`.
|
||||
*/
|
||||
|
@@ -29,11 +29,6 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
|
||||
|
||||
private AddressRepository $addressRepository;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->addressRepository = self::$container->get(AddressRepository::class);
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
{
|
||||
self::ensureKernelShutdown();
|
||||
@@ -50,6 +45,7 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
|
||||
|
||||
$this->assertResponseIsSuccessful();
|
||||
|
||||
$this->addressRepository = self::$container->get(AddressRepository::class);
|
||||
$address = $this->addressRepository->find($addressId);
|
||||
|
||||
$this->assertEquals(Address::ADDR_REFERENCE_STATUS_REVIEWED, $address->getRefStatus());
|
||||
@@ -66,6 +62,7 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
|
||||
|
||||
$this->assertResponseIsSuccessful();
|
||||
|
||||
$this->addressRepository = self::$container->get(AddressRepository::class);
|
||||
$address = $this->addressRepository->find($addressId);
|
||||
|
||||
$this->assertEquals(Address::ADDR_REFERENCE_STATUS_MATCH, $address->getRefStatus());
|
||||
|
@@ -58,7 +58,7 @@ final class DefaultScopeResolverTest extends TestCase
|
||||
|
||||
public function getScopes(): iterable
|
||||
{
|
||||
return $this->scopes;
|
||||
return [$this->scopeA, $this->scopeB];
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user