Skip to content

Commit c18ba67

Browse files
committed
refactor: replace dependency
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 258d11b commit c18ba67

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/integration/config/behat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ default:
66
suites:
77
default:
88
contexts:
9-
- rpkamp\Behat\MailhogExtension\Context\MailhogContext
9+
- LibreSign\Behat\MailpitExtension\Context\MailpitContext
1010
- FeatureContext
1111
paths:
1212
- '%paths.base%/../features'
1313

1414
extensions:
15-
rpkamp\Behat\MailhogExtension:
15+
LibreSign\Behat\MailpitExtension\ServiceContainer\MailpitExtension:
1616
base_url: http://mailpit:8025
1717
PhpBuiltin\Server:
1818
runAs: www-data

tests/integration/features/bootstrap/FeatureContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
use Behat\Testwork\Hook\Scope\BeforeSuiteScope;
1414
use Libresign\NextcloudBehat\NextcloudApiContext;
1515
use PHPUnit\Framework\Assert;
16-
use rpkamp\Behat\MailhogExtension\Context\OpenedEmailStorageAwareContext;
17-
use rpkamp\Behat\MailhogExtension\Service\OpenedEmailStorage;
16+
use LibreSign\Behat\MailpitExtension\Context\OpenedEmailStorageAwareContext;
17+
use LibreSign\Behat\MailpitExtension\Service\OpenedEmailStorage;
1818

1919
/**
2020
* Defines application features from the specific context.
@@ -82,7 +82,7 @@ public function followTheLinkOnOpenedEmail(): void {
8282
throw new RuntimeException('No email opened, unable to do something!');
8383
}
8484

85-
/** @var \rpkamp\Mailhog\Message\Message $openedEmail */
85+
/** @var \LibreSign\Mailpit\Message\Message $openedEmail */
8686
$openedEmail = $this->openedEmailStorage->getOpenedEmail();
8787
preg_match('/p\/sign\/(?<uuid>[\w-]+)"/', $openedEmail->body, $matches);
8888

0 commit comments

Comments
 (0)