Browse Source

Small fix so tests should pass on Travis.

Lacey Sanderson 6 years ago
parent
commit
0f37eb6df7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/tripal_chado/fields/sbo__relationship_widgetTest.php

+ 5 - 0
tests/tripal_chado/fields/sbo__relationship_widgetTest.php

@@ -67,6 +67,11 @@ class sbo__relationship_widgetTest extends TripalTestCase {
          LEFT JOIN tripal_entity e ON e.bundle='bio_data_'||b.bundle_id 
          WHERE data_table=:table AND id IS NOT NULL LIMIT 1",
            array(':table' => $base_table))->fetchField();
+
+       if (!$bundle_id) {
+         continue;
+       }
+
        $bundle_name = 'bio_data_'.$bundle_id;
 
        // Find an entity from the above bundle.