Fix tests

This commit is contained in:
2023-09-01 16:10:04 +02:00
parent 10a75f44e9
commit 2c52a5bffa
9 changed files with 22 additions and 21 deletions

View File

@@ -27,6 +27,12 @@ use function is_string;
*/
abstract class AbstractAggregatorTest extends KernelTestCase
{
public static function tearDownAfterClass(): void
{
self::ensureKernelShutdown();
}
/**
* provide data for `testAliasDidNotDisappears`.
*/

View File

@@ -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());

View File

@@ -58,7 +58,7 @@ final class DefaultScopeResolverTest extends TestCase
public function getScopes(): iterable
{
return $this->scopes;
return [$this->scopeA, $this->scopeB];
}
};