private Context
$context;
private TestDataCollection
$ids;
protected function setUp(): void
{ $this->connection =
$this->
getContainer()->
get(Connection::
class);
$this->versionManager =
$this->
getContainer()->
get(VersionManager::
class);
$this->productRepository =
$this->
getContainer()->
get('product.repository'
);
$this->
registerEntityDefinitionAndInitDatabase();
$this->context = Context::
createDefaultContext();
$this->ids =
new TestDataCollection();
} protected function tearDown(): void
{ $this->connection->
rollBack();
$this->connection->
executeStatement('
ALTER TABLE `product`
DROP FOREIGN KEY `fk.product.many_to_one_id`;
'
);