diff --git a/tests/Api/Todo/CollectionTest.php b/tests/Api/Todo/CollectionTest.php index bb018fc4..c63134c9 100644 --- a/tests/Api/Todo/CollectionTest.php +++ b/tests/Api/Todo/CollectionTest.php @@ -35,7 +35,7 @@ class CollectionTest extends ApiTestCase { public function testDocumentation() { - $response = $this->sendRequest('http://127.0.0.1/doc/*/todo', 'GET', [ + $response = $this->sendRequest('/doc/*/todo', 'GET', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -156,7 +156,7 @@ public function testDocumentation() public function testGet() { - $response = $this->sendRequest('http://127.0.0.1/todo', 'GET', [ + $response = $this->sendRequest('/todo', 'GET', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -273,7 +273,7 @@ public function testGet() public function testPost() { $body = json_encode(['title' => 'foo']); - $response = $this->sendRequest('http://127.0.0.1/todo', 'POST', [ + $response = $this->sendRequest('/todo', 'POST', [ 'User-Agent' => 'Fusio TestCase', 'Authorization' => 'Bearer da250526d583edabca8ac2f99e37ee39aa02a3c076c0edc6929095e20ca18dcf' ], $body); @@ -304,7 +304,7 @@ public function testPost() public function testPostInvalidPayload() { $body = json_encode(['foo' => 'foo']); - $response = $this->sendRequest('http://127.0.0.1/todo', 'POST', [ + $response = $this->sendRequest('/todo', 'POST', [ 'User-Agent' => 'Fusio TestCase', 'Authorization' => 'Bearer da250526d583edabca8ac2f99e37ee39aa02a3c076c0edc6929095e20ca18dcf' ], $body); @@ -325,7 +325,7 @@ public function testPostInvalidPayload() public function testPostWithoutAuthorization() { $body = json_encode(['title' => 'foo']); - $response = $this->sendRequest('http://127.0.0.1/todo', 'POST', [ + $response = $this->sendRequest('/todo', 'POST', [ 'User-Agent' => 'Fusio TestCase', ], $body); @@ -344,7 +344,7 @@ public function testPostWithoutAuthorization() public function testPut() { - $response = $this->sendRequest('http://127.0.0.1/todo', 'PUT', [ + $response = $this->sendRequest('/todo', 'PUT', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -363,7 +363,7 @@ public function testPut() public function testDelete() { - $response = $this->sendRequest('http://127.0.0.1/todo', 'DELETE', [ + $response = $this->sendRequest('/todo', 'DELETE', [ 'User-Agent' => 'Fusio TestCase', ]); diff --git a/tests/Api/Todo/EntityTest.php b/tests/Api/Todo/EntityTest.php index 9366aad6..b9a9463f 100644 --- a/tests/Api/Todo/EntityTest.php +++ b/tests/Api/Todo/EntityTest.php @@ -35,7 +35,7 @@ class EntityTest extends ApiTestCase { public function testDocumentation() { - $response = $this->sendRequest('http://127.0.0.1/doc/*/todo/4', 'GET', [ + $response = $this->sendRequest('/doc/*/todo/4', 'GET', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -146,7 +146,7 @@ public function testDocumentation() public function testGet() { - $response = $this->sendRequest('http://127.0.0.1/todo/4', 'GET', [ + $response = $this->sendRequest('/todo/4', 'GET', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -167,7 +167,7 @@ public function testGet() public function testPost() { - $response = $this->sendRequest('http://127.0.0.1/todo/4', 'POST', [ + $response = $this->sendRequest('/todo/4', 'POST', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -186,7 +186,7 @@ public function testPost() public function testPut() { - $response = $this->sendRequest('http://127.0.0.1/todo/4', 'PUT', [ + $response = $this->sendRequest('/todo/4', 'PUT', [ 'User-Agent' => 'Fusio TestCase', ]); @@ -205,7 +205,7 @@ public function testPut() public function testDelete() { - $response = $this->sendRequest('http://127.0.0.1/todo/4', 'DELETE', [ + $response = $this->sendRequest('/todo/4', 'DELETE', [ 'User-Agent' => 'Fusio TestCase', 'Authorization' => 'Bearer da250526d583edabca8ac2f99e37ee39aa02a3c076c0edc6929095e20ca18dcf' ]); @@ -235,7 +235,7 @@ public function testDelete() public function testDeleteWithoutAuthorization() { - $response = $this->sendRequest('http://127.0.0.1/todo/4', 'DELETE', [ + $response = $this->sendRequest('/todo/4', 'DELETE', [ 'User-Agent' => 'Fusio TestCase', ]);