예제 #1
0
 /**
  * test search of asterisk context
  *
  */
 public function testSearchAsteriskContext()
 {
     // create
     $asteriskContext = $this->_getAsteriskContext();
     $asteriskContextData = $this->_json->saveAsteriskContext($asteriskContext->toArray());
     // search & check
     $search = $this->_json->searchAsteriskContexts($this->_getAsteriskContextFilter($asteriskContext->name), $this->_getPaging());
     $this->assertEquals($asteriskContext->description, $search['results'][0]['description']);
     $this->assertEquals(1, $search['totalcount']);
     // cleanup
     $this->_json->deleteAsteriskContexts($asteriskContextData['id']);
     /***********************************************************************************/
 }