APIXmlrpcTest::testListSearchOptions PHP Method

testListSearchOptions() public method

public testListSearchOptions ( $session_token )
    public function testListSearchOptions($session_token)
    {
        // test retrieve all users
        $res = $this->doHttpRequest('listSearchOptions', ['session_token' => $session_token, 'itemtype' => 'Computer']);
        $this->assertEquals(200, $res->getStatusCode());
        $data = xmlrpc_decode($res->getBody());
        $this->assertNotEquals(false, $data);
        $this->assertGreaterThanOrEqual(128, count($data));
        $this->assertEquals('Name', $data[1]['name']);
        $this->assertEquals('glpi_computers', $data[1]['table']);
        $this->assertEquals('name', $data[1]['field']);
        $this->assertEquals('itemlink', $data[1]['datatype']);
    }