testitest
This commit is contained in:
parent
43ca79f650
commit
66c4c1fe4f
30 changed files with 4443 additions and 184 deletions
17
tests/Feature/FeatureTestBase.php
Normal file
17
tests/Feature/FeatureTestBase.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php declare(strict_types=1);
|
||||
// tests/Feature/FeatureTestBootstrap.php
|
||||
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
uses(KernelTestCase::class)->in(__DIR__);
|
||||
|
||||
beforeEach(function () {
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
createDatabaseSchema($em);
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
deleteDatabaseFile($em);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue