File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Tests/Integration/Controller Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 88use PhpList \PhpList4 \Core \Environment ;
99use PHPUnit \DbUnit \Database \Connection ;
1010use PHPUnit \DbUnit \DataSet \CsvDataSet ;
11+ use PHPUnit \DbUnit \Operation \Factory ;
12+ use PHPUnit \DbUnit \Operation \Operation ;
1113use PHPUnit \DbUnit \TestCaseTrait ;
1214use Symfony \Bundle \FrameworkBundle \Client ;
1315use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
@@ -107,6 +109,16 @@ protected function tearDown()
107109 Bootstrap::purgeInstance ();
108110 }
109111
112+ /**
113+ * Returns the database operation executed in test cleanup.
114+ *
115+ * @return Operation
116+ */
117+ protected function getTearDownOperation (): Operation
118+ {
119+ return Factory::TRUNCATE ();
120+ }
121+
110122 /**
111123 * Returns the test database connection.
112124 *
You can’t perform that action at this time.
0 commit comments