Api_GpTest::testSearchByIdFound PHP Method

testSearchByIdFound() public method

public testSearchByIdFound ( )
    public function testSearchByIdFound()
    {
        $this->get('Practitioner?_id=gp-1&_profile=' . urlencode(services\Gp::getOeFhirProfile()));
        $this->assertXPathEquals('feed', 'local-name()');
        $this->assertXPathEquals($this->client->getBaseUrl(), 'string(./atom:link[@rel="base"]/@href)');
        $this->assertUrlEquals($this->client->getBaseUrl() . '/Practitioner?_id=gp-1&_profile=' . urlencode(services\Gp::getOeFhirProfile()), $this->xPathEval('string(./atom:link[@rel="self"]/@href)'));
        $this->assertXPathCount(1, './atom:entry');
        $this->assertXPathEquals($this->client->getBaseUrl() . '/Practitioner/gp-1', 'string(./atom:entry/atom:id/text())');
        $this->assertXPathEquals('Practitioner', 'local-name(./atom:entry/atom:content/*)');
    }