diff --git a/Tests/Integration/Controller/AbstractControllerTest.php b/Tests/Integration/Controller/AbstractControllerTest.php index bf35951..c674b17 100644 --- a/Tests/Integration/Controller/AbstractControllerTest.php +++ b/Tests/Integration/Controller/AbstractControllerTest.php @@ -8,6 +8,8 @@ use PhpList\PhpList4\Core\Environment; use PHPUnit\DbUnit\Database\Connection; use PHPUnit\DbUnit\DataSet\CsvDataSet; +use PHPUnit\DbUnit\Operation\Factory; +use PHPUnit\DbUnit\Operation\Operation; use PHPUnit\DbUnit\TestCaseTrait; use Symfony\Bundle\FrameworkBundle\Client; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; @@ -107,6 +109,16 @@ protected function tearDown() Bootstrap::purgeInstance(); } + /** + * Returns the database operation executed in test cleanup. + * + * @return Operation + */ + protected function getTearDownOperation(): Operation + { + return Factory::TRUNCATE(); + } + /** * Returns the test database connection. *