friendica-github/tests/StorageConfigTestCase.php

30 lines
671 B
PHP
Raw Normal View History

<?php
2024-08-24 12:31:41 +00:00
// Copyright (C) 2010-2024, the Friendica project
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
//
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Test;
2021-10-23 10:11:38 +00:00
use Friendica\Core\Storage\Capability\ICanConfigureStorage;
2024-12-11 22:45:17 +00:00
use Friendica\Test\MockedTestCase;
abstract class StorageConfigTestCase extends MockedTestCase
{
2021-10-27 18:16:34 +00:00
/** @return ICanConfigureStorage */
abstract protected function getInstance();
2021-10-27 18:16:34 +00:00
abstract protected function assertOption(ICanConfigureStorage $storage);
/**
* Test if the "getOption" is asserted
*/
public function testGetOptions()
{
$instance = $this->getInstance();
$this->assertOption($instance);
}
}