summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-05-03 22:38:36 +0200
committerJoas Schilling <coding@schilljs.com>2023-05-03 22:38:36 +0200
commit8bc090611b60f333c76a181ee5b335f3e618a210 (patch)
tree6cbb5c9b346a75eb255cc267cb9f67ff6e9f7563 /tests
parent6659f1b1e1f642ce116dfc3ad5170c0d1b4e5a6f (diff)
fix(tests): Adjust function names to be unique
Signed-off-by: Joas Schilling <coding@schilljs.com>
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 23c3fb826..d4963e47f 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -3226,7 +3226,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
/**
* @When /^the room "([^"]*)" has an avatar with (\d+)(?: \((v1)\))?$/
*/
- public function theRoomNeedToHaveAnAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1'): void {
+ public function theRoomHasAnAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1'): void {
$this->sendRequest('GET', '/apps/spreed/api/' . $apiVersion . '/room/' . self::$identifierToToken[$identifier] . '/avatar');
$this->assertStatusCode($this->response, $statusCode);
}
@@ -3234,15 +3234,15 @@ class FeatureContext implements Context, SnippetAcceptingContext {
/**
* @When /^the room "([^"]*)" has an svg as avatar with (\d+)(?: \((v1)\))?$/
*/
- public function theRoomNeedsToHaveASvgAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1'): void {
- $this->theRoomNeedsToHaveASvgAvatarWithStatusCode($identifier, $statusCode, $apiVersion, true);
+ public function theRoomHasASvgAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1'): void {
+ $this->theRoomHasNoSvgAvatarWithStatusCode($identifier, $statusCode, $apiVersion, true);
}
/**
* @When /^the room "([^"]*)" has not an svg as avatar with (\d+)(?: \((v1)\))?$/
*/
- public function theRoomNeedsToHaveASvgAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1', bool $expectedToBeSvg = false): void {
- $this->theRoomNeedToHaveAnAvatarWithStatusCode($identifier, $statusCode, $apiVersion);
+ public function theRoomHasNoSvgAvatarWithStatusCode(string $identifier, int $statusCode, string $apiVersion = 'v1', bool $expectedToBeSvg = false): void {
+ $this->theRoomHasAnAvatarWithStatusCode($identifier, $statusCode, $apiVersion);
$content = $this->response->getBody()->getContents();
try {
simplexml_load_string($content);