diff options
author | Robin Kluth <Commifreak@users.noreply.github.com> | 2024-02-23 20:05:50 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 11:34:34 +0100 |
commit | 51739ad1ac658a6215851cd9eac37a30c4f85955 (patch) | |
tree | 6d24feb9f0ffee350fe25426b928b3be1d2c1797 /tests | |
parent | 414f8f1f2d9f04dfee2b94e5570b490f58f6e030 (diff) | |
download | nextcloud-server-51739ad1ac658a6215851cd9eac37a30c4f85955.tar.gz nextcloud-server-51739ad1ac658a6215851cd9eac37a30c4f85955.zip |
Adjust tests to match new expected exception
Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Http/Client/DnsPinMiddlewareTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Http/Client/DnsPinMiddlewareTest.php b/tests/lib/Http/Client/DnsPinMiddlewareTest.php index 2fa868e6963..54071f37b1a 100644 --- a/tests/lib/Http/Client/DnsPinMiddlewareTest.php +++ b/tests/lib/Http/Client/DnsPinMiddlewareTest.php @@ -287,7 +287,7 @@ class DnsPinMiddlewareTest extends TestCase { public function testRejectIPv4() { $this->expectException(LocalServerException::class); - $this->expectExceptionMessage('Host violates local access rules'); + $this->expectExceptionMessage('violates local access rules'); $mockHandler = new MockHandler([ static function (RequestInterface $request, array $options) { @@ -334,7 +334,7 @@ class DnsPinMiddlewareTest extends TestCase { public function testRejectIPv6() { $this->expectException(LocalServerException::class); - $this->expectExceptionMessage('Host violates local access rules'); + $this->expectExceptionMessage('violates local access rules'); $mockHandler = new MockHandler([ static function (RequestInterface $request, array $options) { @@ -381,7 +381,7 @@ class DnsPinMiddlewareTest extends TestCase { public function testRejectCanonicalName() { $this->expectException(LocalServerException::class); - $this->expectExceptionMessage('Host violates local access rules'); + $this->expectExceptionMessage('violates local access rules'); $mockHandler = new MockHandler([ static function (RequestInterface $request, array $options) { |