/**
  * test search of snom template
  *
  */
 public function testSearchSnomTemplate()
 {
     // create
     $snomTemplate = $this->_getSnomTemplate();
     $snomTemplateData = $this->_json->saveSnomTemplate($snomTemplate->toArray());
     // search & check
     $search = $this->_json->searchSnomTemplates($this->_getSnomTemplateFilter($snomTemplate->name), $this->_getPaging());
     $this->assertEquals($snomTemplate->name, $search['results'][0]['name']);
     $this->assertEquals(1, $search['totalcount']);
 }
 /**
  * test search of snom template
  *
  */
 public function testSearchSnomTemplate()
 {
     // create
     $snomTemplate = $this->_getSnomTemplate();
     $snomTemplateData = $this->_json->saveSnomTemplate($snomTemplate->toArray());
     // search & check
     $search = $this->_json->searchSnomTemplates($this->_getSnomTemplateFilter($snomTemplate->name), $this->_getPaging());
     $this->assertEquals($snomTemplate->name, $search['results'][0]['name']);
     $this->assertEquals(1, $search['totalcount']);
     // cleanup
     $this->_json->deleteSnomTemplates($snomTemplateData['id']);
     $this->_json->deleteSnomSoftwares($snomTemplateData['software_id']['value']);
     $this->_json->deleteSnomSettings($snomTemplateData['setting_id']['value']);
     /***********************************************************************************/
 }