public function __construct(Configuration $configuration, $accountId) { $this->configuration = $configuration; $storageApi = $this->configuration->getStorageApi(); $sysBucket = $this->configuration->getSysBucketId(); $this->accountId = $accountId; parent::__construct($storageApi, $sysBucket . '.' . $accountId); }
protected function setUp() { parent::setUp(); $this->componentName = $this->httpClient->getContainer()->getParameter('app_name'); $this->configuration = $this->getConfiguration(); try { $this->configuration->create(); } catch (\Exception $e) { // sys bucket exists } // Cleanup $sysBucketId = $this->configuration->getSysBucketId(); $accTables = $this->storageApiClient->listTables($sysBucketId); foreach ($accTables as $table) { $this->storageApiClient->dropTable($table['id']); } }