Skip to content

Commit

Permalink
test: Run integration tests in transactions
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Dec 27, 2023
1 parent 7bca28e commit cee63df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Integration/Db/LocalAttachmentMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,6 +39,8 @@
use PHPUnit\Framework\MockObject\MockObject;

class LocalAttachmentMapperTest extends TestCase {
use DatabaseTransaction;

/** @var IDBConnection */
private $db;

Expand Down
2 changes: 2 additions & 0 deletions tests/Integration/Db/LocalMessageMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -39,6 +40,7 @@
use PHPUnit\Framework\MockObject\MockObject;

class LocalMessageMapperTest extends TestCase {
use DatabaseTransaction;
use ImapTestAccount;

/** @var IDBConnection */
Expand Down
2 changes: 2 additions & 0 deletions tests/Integration/Db/RecipientMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,6 +39,7 @@
use PHPUnit\Framework\MockObject\MockObject;

class RecipientMapperTest extends TestCase {
use DatabaseTransaction;
use ImapTestAccount;

/** @var IDBConnection */
Expand Down

0 comments on commit cee63df

Please sign in to comment.