friendica-addons/s3_storage/vendor/akeeba/s3/minitest/Test/BucketLocation.php

25 lines
642 B
PHP
Raw Normal View History

2022-02-20 21:22:07 +01:00
<?php
/**
* Akeeba Engine
*
* @package akeebaengine
* @copyright Copyright (c)2006-2024 Nicholas K. Dionysopoulos / Akeeba Ltd
2022-02-20 21:22:07 +01:00
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\MiniTest\Test;
use Akeeba\S3\Connector;
2022-02-20 21:22:07 +01:00
class BucketLocation extends AbstractTest
{
public static function getBucketLocation(Connector $s3, array $options): bool
{
$location = $s3->getBucketLocation($options['bucket']);
static::assert($location === $options['region'], "Bucket {$options['bucket']} reports being in region {$location} instead of expected {$options['region']}");
2022-02-20 21:22:07 +01:00
return true;
}
}