mirror of
https://github.com/jbcr/SyliusElasticsearchPlugin.git
synced 2026-03-24 00:42:08 +01:00
try fix GA
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user