Parcourir la source

Remove https prefix

Abdullah Almsaeed il y a 6 ans
Parent
commit
e3e999978a
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      tests/.travis.env
  2. 2 2
      tests/tripal_ws/http/TripalContentTest.php

+ 1 - 1
tests/.travis.env

@@ -1,2 +1,2 @@
-BASE_URL=http://localhost:8080
+BASE_URL=http://127.0.0.1:8080
 FAKER_LOCALE=en_US

+ 2 - 2
tests/tripal_ws/http/TripalContentTest.php

@@ -13,7 +13,7 @@ class TripalContentTest extends TripalTestCase{
   /** @test */
   public function testGettingMainContentList() {
     //call /web-services/content/v0.1
-    $response = $this->get('http://127.0.0.1:8080/web-services/content/v0.1');
+    $response = $this->get('web-services/content/v0.1');
 
     // Make sure it returned valid json
     $response->assertSuccessful();
@@ -40,7 +40,7 @@ class TripalContentTest extends TripalTestCase{
     $label = db_query('SELECT label FROM tripal_bundle LIMIT 1')->fetchField();
 
     // Call /web-services/content/v0.1/[label]
-    $response = $this->get("http://127.0.0.1:8080/web-services/content/v0.1/$label");
+    $response = $this->get("web-services/content/v0.1/$label");
 
     // Verify the returned JSON matches the structure
     $response->assertSuccessful();