public function testGetListBySearch() { $testResult = array(array('command_name' => 'Test check'), array('command_name' => 'Test connector'), array('command_name' => 'Test notif')); $result = Command::getListBySearch('command_name'); $this->assertEquals($testResult, $result); $testResult = array(array('command_name' => 'Test check'), array('command_name' => 'Test connector')); $result = Command::getListBySearch('command_name', -1, 0, null, 'ASC', array('command_name' => 'Test', 'enable_shell' => 0), 'AND'); $this->assertEquals($testResult, $result); }