diff --git a/tests/Integration/Db/LocalAttachmentMapperTest.php b/tests/Integration/Db/LocalAttachmentMapperTest.php index 0525a3e13b..3f93240ec7 100644 --- a/tests/Integration/Db/LocalAttachmentMapperTest.php +++ b/tests/Integration/Db/LocalAttachmentMapperTest.php @@ -25,6 +25,7 @@ namespace OCA\Mail\Tests\Integration\Db; +use ChristophWurst\Nextcloud\Testing\DatabaseTransaction; use ChristophWurst\Nextcloud\Testing\TestCase; use OCA\Mail\Db\LocalAttachment; use OCA\Mail\Db\LocalAttachmentMapper; @@ -38,6 +39,8 @@ use PHPUnit\Framework\MockObject\MockObject; class LocalAttachmentMapperTest extends TestCase { + use DatabaseTransaction; + /** @var IDBConnection */ private $db; diff --git a/tests/Integration/Db/LocalMessageMapperTest.php b/tests/Integration/Db/LocalMessageMapperTest.php index e5505236b0..2865f00d4d 100644 --- a/tests/Integration/Db/LocalMessageMapperTest.php +++ b/tests/Integration/Db/LocalMessageMapperTest.php @@ -25,6 +25,7 @@ namespace OCA\Mail\Tests\Integration\Db; +use ChristophWurst\Nextcloud\Testing\DatabaseTransaction; use ChristophWurst\Nextcloud\Testing\TestCase; use OCA\Mail\Db\LocalAttachmentMapper; use OCA\Mail\Db\LocalMessage; @@ -39,6 +40,7 @@ use PHPUnit\Framework\MockObject\MockObject; class LocalMessageMapperTest extends TestCase { + use DatabaseTransaction; use ImapTestAccount; /** @var IDBConnection */ diff --git a/tests/Integration/Db/RecipientMapperTest.php b/tests/Integration/Db/RecipientMapperTest.php index 8085f8b979..c3d41dea59 100644 --- a/tests/Integration/Db/RecipientMapperTest.php +++ b/tests/Integration/Db/RecipientMapperTest.php @@ -25,6 +25,7 @@ namespace OCA\Mail\Tests\Integration\Db; +use ChristophWurst\Nextcloud\Testing\DatabaseTransaction; use ChristophWurst\Nextcloud\Testing\TestCase; use OCA\Mail\Db\LocalAttachmentMapper; use OCA\Mail\Db\LocalMessage; @@ -38,6 +39,7 @@ use PHPUnit\Framework\MockObject\MockObject; class RecipientMapperTest extends TestCase { + use DatabaseTransaction; use ImapTestAccount; /** @var IDBConnection */