SearchTest::testMetaComputerSoftwareLicense PHP Method

testMetaComputerSoftwareLicense() public method

    public function testMetaComputerSoftwareLicense()
    {
        $search_params = array('is_deleted' => 0, 'start' => 0, 'criteria' => array(0 => array('field' => 'view', 'searchtype' => 'contains', 'value' => '')), 'metacriteria' => array(0 => array('link' => 'AND', 'itemtype' => 'Software', 'field' => 163, 'searchtype' => 'contains', 'value' => '>0'), 1 => array('link' => 'AND', 'itemtype' => 'Software', 'field' => 160, 'searchtype' => 'contains', 'value' => 'firefox')));
        $data = $this->doSearch('Computer', $search_params);
        // check for sql error (data key missing or empty)
        $this->assertArrayHasKey('data', $data, $data['last_errors']);
        $this->assertNotCount(0, $data['data'], $data['last_errors']);
    }