Browse Source

tests pass local and basic test for all public methods

bradford.condon 6 years ago
parent
commit
63a03e1ff7
2 changed files with 3 additions and 2 deletions
  1. 2 1
      tests/tripal_chado/api/ChadoRecordTest.php
  2. 1 1
      tripal_chado/api/ChadoRecord.inc

+ 2 - 1
tests/tripal_chado/api/ChadoRecordTest.php

@@ -272,7 +272,8 @@ class ChadoRecordTest extends TripalTestCase {
     $string = 'some_random_new_string34792387';
     $string = 'some_random_new_string34792387';
     $values[$key] = $string;
     $values[$key] = $string;
 
 
-    $record->update($values);
+    $record->setValues($values);
+    $record->update();
 
 
     //$dump_vals = $record->getValues();
     //$dump_vals = $record->getValues();
    // var_dump($dump_vals);
    // var_dump($dump_vals);

+ 1 - 1
tripal_chado/api/ChadoRecord.inc

@@ -125,7 +125,7 @@ class ChadoRecord {
    *   The name of the table that the record belongs to.
    *   The name of the table that the record belongs to.
    */
    */
   public function getTable() {
   public function getTable() {
-    return $this->table;
+    return $this->table_name;
   }
   }
   
   
   /**
   /**