Skip to content

Commit 2bc6826

Browse files
committed
Fix: wrong format of endpoint
1 parent cb846ba commit 2bc6826

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/php/application/controllers/ApiV1ChannelsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function testRequestWithNonSupportedMethod(): void
190190

191191
// Endpoint specific invalid method
192192
// Try to POST
193-
$expected = $this->jsonEncodeError('Method POST is not supported for endpoint Channels');
193+
$expected = $this->jsonEncodeError('Method POST is not supported for endpoint channels');
194194
//Try to POST without identifier
195195
$response = $this->sendRequest('POST', 'channels');
196196
$content = $response->getBody()->getContents();
@@ -229,14 +229,14 @@ public function testRequestWithNonSupportedMethod(): void
229229

230230
$this->assertSame(405, $response->getStatusCode(), $content);
231231
$this->assertSame([$expectedAllowHeader], $response->getHeader('Allow'));
232-
$this->assertSame($this->jsonEncodeError('Method PUT is not supported for endpoint Channels'), $content);
232+
$this->assertSame($this->jsonEncodeError('Method PUT is not supported for endpoint channels'), $content);
233233

234234
// Try to DELETE
235235
$response = $this->sendRequest('DELETE', 'channels');
236236
$content = $response->getBody()->getContents();
237237

238238
$this->assertSame(405, $response->getStatusCode(), $content);
239239
$this->assertSame([$expectedAllowHeader], $response->getHeader('Allow'));
240-
$this->assertSame($this->jsonEncodeError('Method DELETE is not supported for endpoint Channels'), $content);
240+
$this->assertSame($this->jsonEncodeError('Method DELETE is not supported for endpoint channels'), $content);
241241
}
242242
}

0 commit comments

Comments
 (0)