try fix GA

This commit is contained in:
patryk
2022-08-23 13:43:13 +02:00
parent 93bf42c84e
commit a7fcb64314
3 changed files with 14 additions and 6 deletions

View File

@@ -14,13 +14,12 @@ use ApiTestCase\JsonApiTestCase;
abstract class IntegrationTestCase extends JsonApiTestCase
{
protected $client;
public function __construct(
?string $name = null,
array $data = [],
string $dataName = ''
) {
)
{
parent::__construct($name, $data, $dataName);
$this->dataFixturesPath = __DIR__ . '/DataFixtures/ORM';
@@ -28,9 +27,6 @@ abstract class IntegrationTestCase extends JsonApiTestCase
protected function setUp(): void
{
if (null === $this->client) {
$this->client = static::createClient();
}
}
protected function tearDown(): void

View File

@@ -26,6 +26,12 @@ class ProductAttributeRepositoryTest extends IntegrationTestCase
$this->attributeRepository = self::$container->get('bitbag.sylius_elasticsearch_plugin.repository.product_attribute_repository');
}
public function tearDown(): void
{
parent::tearDown();
self::ensureKernelShutdown();
}
public function test_get_attribute_type_by_name(): void
{
$this->loadFixturesFromFiles(['Repository/ProductAttributeValueRepositoryTest/test_product_attribute_repository.yaml']);

View File

@@ -29,6 +29,12 @@ class ProductAttributeValueRepositoryTest extends IntegrationTestCase
$this->taxonRepository = self::$container->get('sylius.repository.taxon');
}
public function tearDown(): void
{
parent::tearDown();
self::ensureKernelShutdown();
}
public function test_get_unique_attribute_values(): void
{
$this->loadFixturesFromFiles(['Repository/ProductAttributeValueRepositoryTest/test_product_attribute_value_repository.yaml']);