Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Run integration tests in transactions #9199

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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