/**
  * test method
  */
 public function testGetMethod()
 {
     $helper = WD_Helper_Taxonomy::getInstance();
     wd_update_term_meta(1, 'key', 'myvalue');
     $this->assertEquals('myvalue', $helper->get('key', 1));
 }
 /**
  * Saves fields in database
  * 
  * @param int $termID
  * @return self
  */
 public function saveFields($termID)
 {
     foreach ($this->dataHandler->getFillable() as $field) {
         if (isset($_POST[$field->getBaseName()])) {
             wd_update_term_meta($termID, $name = $this->prefix . $field->getBaseName(), apply_filters('wd-fieldcreator-save-' . $name, $_POST[$field->getBaseName()]));
         }
     }
 }
 /**
  * test method
  */
 public function testAddGetMeta()
 {
     $this->assertTrue(wd_update_term_meta(1, 'mykey', array('myvalue')));
     $this->assertEquals(array('myvalue'), wd_get_term_meta(1, 'mykey'));
 }