Browse Source

Test the url parsing to make sure it's calling the right port

Abdullah Almsaeed 6 years ago
parent
commit
6d5e6e5bfc
2 changed files with 2 additions and 4 deletions
  1. 0 2
      .travis.yml
  2. 2 2
      tests/tripal_ws/http/TripalContentTest.php

+ 0 - 2
.travis.yml

@@ -47,8 +47,6 @@ before_script:
   - drush en -y field_group, field_group_table, field_formatter_class, field_formatter_settings, ctools, date, devel,
               ds, link, entity, libraries, redirect, token uuid, jquery_update, views, webform
 
-
-
 script:
   # Link our repo to the modules directory
   - mv ../tripal sites/all/modules/tripal

+ 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('/web-services/content/v0.1');
+    $response = $this->get('http://127.0.0.1:8080/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("/web-services/content/v0.1/$label");
+    $response = $this->get("http://127.0.0.1:8080/web-services/content/v0.1/$label");
 
     // Verify the returned JSON matches the structure
     $response->assertSuccessful();