File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,16 @@ class PreviewMapperTest extends TestCase {
2222 private IDBConnection $ connection ;
2323
2424 public function setUp (): void {
25+ parent ::setUp ();
2526 $ this ->previewMapper = Server::get (PreviewMapper::class);
2627 $ this ->connection = Server::get (IDBConnection::class);
2728 }
2829
30+ public function tearDown (): void {
31+ $ this ->previewMapper ->deleteAll ();
32+ parent ::tearDown ();
33+ }
34+
2935 public function testGetAvailablePreviews (): void {
3036 // Empty
3137 $ this ->assertEquals ([], $ this ->previewMapper ->getAvailablePreviews ([]));
Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ class PreviewServiceTest extends TestCase {
2424 private PreviewMapper $ previewMapper ;
2525
2626 protected function setUp (): void {
27+ parent ::setUp ();
2728 $ this ->previewService = Server::get (PreviewService::class);
2829 $ this ->previewMapper = Server::get (PreviewMapper::class);
2930 $ this ->previewService ->deleteAll ();
3031 }
3132
3233 public function tearDown (): void {
3334 $ this ->previewService ->deleteAll ();
35+ parent ::tearDown ();
3436 }
3537
3638 public function testGetAvailableFileIds (): void {
You can’t perform that action at this time.
0 commit comments