Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit ea68f07

Browse files
committed
Fix sdk client test
1 parent bed1aa7 commit ea68f07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/ClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testFindRedirectWhenExist()
3737

3838
$response = $this->client->findRedirect($request);
3939

40-
$this->assertInstanceOf(RedirectResponse::class, $response);
40+
$this->assertInstanceOf(Response::class, $response);
4141
$this->assertSame(301, $response->getStatusCode());
4242
$this->assertSame('/bar', $response->getLocation());
4343
}
@@ -52,7 +52,7 @@ public function testFindRedirectWhenExistUsingUnixSocket()
5252

5353
$response = $client->findRedirect($request);
5454

55-
$this->assertInstanceOf(RedirectResponse::class, $response);
55+
$this->assertInstanceOf(Response::class, $response);
5656
$this->assertSame(301, $response->getStatusCode());
5757
$this->assertSame('/bar', $response->getLocation());
5858
}
@@ -63,13 +63,13 @@ public function testFindRedirectWhenExistTwice()
6363

6464
$response = $this->client->findRedirect($request);
6565

66-
$this->assertInstanceOf(RedirectResponse::class, $response);
66+
$this->assertInstanceOf(Response::class, $response);
6767
$this->assertSame(301, $response->getStatusCode());
6868
$this->assertSame('/bar', $response->getLocation());
6969

7070
$response = $this->client->findRedirect($request);
7171

72-
$this->assertInstanceOf(RedirectResponse::class, $response);
72+
$this->assertInstanceOf(Response::class, $response);
7373
$this->assertSame(301, $response->getStatusCode());
7474
$this->assertSame('/bar', $response->getLocation());
7575
}

0 commit comments

Comments
 (0)