mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-09-10 04:05:17 +00:00
25 lines
No EOL
668 B
PHP
25 lines
No EOL
668 B
PHP
<?php
|
||
/**
|
||
* Akeeba Engine
|
||
*
|
||
* @package akeebaengine
|
||
* @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||
* @license GNU General Public License version 3, or later
|
||
*/
|
||
|
||
namespace Akeeba\MiniTest\Test;
|
||
|
||
|
||
use Akeeba\Engine\Postproc\Connector\S3v4\Connector;
|
||
|
||
class BucketLocation extends AbstractTest
|
||
{
|
||
public static function getBucketLocation(Connector $s3, array $options): bool
|
||
{
|
||
$location = $s3->getBucketLocation($options['bucket']);
|
||
|
||
self::assert($location === $options['region'], "Bucket ‘{$options['bucket']}′ reports being in region ‘{$location}′ instead of expected ‘{$options['region']}′");
|
||
|
||
return true;
|
||
}
|
||
} |