summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-05-03 10:17:22 -0300
committerVitor Mattos <vitor@php.rio>2023-05-03 11:42:41 -0300
commit6659f1b1e1f642ce116dfc3ad5170c0d1b4e5a6f (patch)
tree22ee04dd8cc446033694cec6e8f566ffcf33984e /tests
parent9e4753354e73ee05b525e2a27afdb2df9bf1deea (diff)
Fix texts
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 7b5aab4a1..23c3fb826 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -3234,14 +3234,14 @@ class FeatureContext implements Context, SnippetAcceptingContext {
/**
* @When /^the room "([^"]*)" has an svg as avatar with (\d+)(?: \((v1)\))?$/
*/
- public function theRoomNeedToHaveAnAsvAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1'): void {
- $this->theRoomNeedToHavetAnAsvAvatarWithStatusCode($identifier, $statusCode, $apiVersion, true);
+ public function theRoomNeedsToHaveASvgAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1'): void {
+ $this->theRoomNeedsToHaveASvgAvatarWithStatusCode($identifier, $statusCode, $apiVersion, true);
}
/**
* @When /^the room "([^"]*)" has not an svg as avatar with (\d+)(?: \((v1)\))?$/
*/
- public function theRoomNeedToHavetAnAsvAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1', bool $expectedToBeSvg = false): void {
+ public function theRoomNeedsToHaveASvgAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1', bool $expectedToBeSvg = false): void {
$this->theRoomNeedToHaveAnAvatarWithStatusCode($identifier, $statusCode, $apiVersion);
$content = $this->response->getBody()->getContents();
try {
@@ -3251,7 +3251,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
$actualIsSvg = false;
}
if ($expectedToBeSvg) {
- Assert::assertEquals($expectedToBeSvg, $actualIsSvg, 'The room avatar need to be a XML file');
+ Assert::assertEquals($expectedToBeSvg, $actualIsSvg, 'The room avatar needs to be a XML file');
} else {
Assert::assertEquals($expectedToBeSvg, $actualIsSvg, 'The room avatar can not be a XML file');
}
@@ -3266,7 +3266,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
try {
simplexml_load_string($content);
} catch (\Throwable $th) {
- throw new Exception('The avatar need to be a XML');
+ throw new Exception('The avatar needs to be a XML');
}
Assert::stringContains($content, $string);
}