Skip to content

Commit d921727

Browse files
committed
Fix behat tests
1 parent 75d26fe commit d921727

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

features/bootstrap/ProfilerContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private function validateUserWelcomeEmail(array $context, Headers $headers): voi
312312
private function validatePasswordReset(array $context, Headers $headers, bool $customPath = false): void
313313
{
314314
$pathInsert = $customPath ? 'another-path' : 'reset-password';
315-
Assert::assertEquals('Your password has been reset', $headers->get('subject')->getBodyAsString());
315+
Assert::assertEquals('Your password reset request', $headers->get('subject')->getBodyAsString());
316316
Assert::assertStringStartsWith(PasswordResetEmailFactory::MESSAGE_ID_PREFIX, $headers->get('x-message-id')->getBodyAsString());
317317
Assert::assertMatchesRegularExpression('/^http:\/\/www.website.com\/' . $pathInsert . '\/my_username\/([a-z0-9]+)$/i', $context['redirect_url']);
318318
}

features/main/component_groups.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Feature: ComponentGroup resource
3636
Given there is a ComponentGroup with 4 components
3737
When I send a "DELETE" request to the resource "component_group"
3838
Then the response status code should be 204
39-
And there should be 4 DummyComponent resources
39+
And there should be 0 DummyComponent resources
4040
And there should be 0 ComponentPosition resources
4141

4242
@loginUser

0 commit comments

Comments
 (0)