/** * test search of asterisk SipPeer * */ public function testSearchAsteriskSipPeer() { // create $asteriskSipPeer = $this->_getAsteriskSipPeer(); $asteriskSipPeerData = $this->_json->saveAsteriskSipPeer($asteriskSipPeer->toArray()); // search & check $search = $this->_json->searchAsteriskSipPeers($this->_getAsteriskSipPeerFilter($asteriskSipPeer->name), $this->_getPaging()); $this->assertEquals(1, $search['totalcount']); $this->assertEquals($asteriskSipPeer->name, $search['results'][0]['name']); // cleanup $this->_json->deleteAsteriskSipPeers($asteriskSipPeerData['id']); /***********************************************************************************/ }