mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Improved API tests and added test for short URLs creation
This commit is contained in:
@@ -5,6 +5,7 @@ namespace ShlinkioTest\Shlink\Common;
|
||||
|
||||
use Doctrine\Common\DataFixtures\Executor\ORMExecutor;
|
||||
use Doctrine\Common\DataFixtures\Loader;
|
||||
use Doctrine\Common\DataFixtures\Purger\ORMPurger;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\Process\Process;
|
||||
use function file_exists;
|
||||
@@ -38,7 +39,7 @@ class TestHelper
|
||||
$loader->loadFromDirectory($path);
|
||||
}
|
||||
|
||||
$executor = new ORMExecutor($em);
|
||||
$executor->execute($loader->getFixtures(), true);
|
||||
$executor = new ORMExecutor($em, new ORMPurger());
|
||||
$executor->execute($loader->getFixtures());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user