Basho\Tests\SearchOperationsTest::setUpBeforeClass PHP Method

setUpBeforeClass() public static method

public static setUpBeforeClass ( )
    public static function setUpBeforeClass()
    {
        parent::setUpBeforeClass();
        $response = (new Command\Builder\Search\FetchIndex(static::$riak))->withName(static::INDEX)->build()->execute();
        if ($response->getCode() == '200') {
            (new Command\Builder\Search\DissociateIndex(static::$riak))->buildBucket('sabres', self::SEARCH_BUCKET_TYPE)->build()->execute();
            (new Command\Builder\Search\DeleteIndex(static::$riak))->withName(static::INDEX)->build()->execute();
        }
    }