<?php

use Crossroads\Magento\Test\Integration\MagentoManager;
use Fixtures\Products;
use Fixtures\TaxRates;

require_once __DIR__ . "/../vendor/autoload.php";
require_once __DIR__ . "/../vendor/crossroads/mageql-catalog/test/Fixtures/Products.php";
require_once __DIR__ . "/../vendor/crossroads/mageql-catalog/test/Fixtures/TaxRates.php";

try {
    MagentoManager::setUp(__DIR__ . "/../vendor/awardit/magento-lts");

    (new TaxRates())->load();
    (new Products())->load();

    MagentoManager::reindex();
}
catch(Throwable $t) {
    echo $t;
    throw $t;
}
