Basho\Tests\SearchOperationsTest::testFetchSchema PHP Method

testFetchSchema() public method

public testFetchSchema ( )
    public function testFetchSchema()
    {
        $response = (new Command\Builder\Search\FetchSchema(static::$riak))->withName('_yz_default')->build()->execute();
        $this->assertEquals('200', $response->getCode(), $response->getMessage());
        $this->assertEquals('application/xml', $response->getContentType());
        $this->assertNotEmpty($response->getSchema());
        static::$default_schema = $response->getSchema();
    }