You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
821 B
31 lines
821 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\Tests\CoreBundle\Settings;
|
|
|
|
use Chamilo\CoreBundle\Settings\SettingsManager;
|
|
use Chamilo\Tests\AbstractApiTest;
|
|
use Chamilo\Tests\ChamiloTestTrait;
|
|
use InvalidArgumentException;
|
|
|
|
class SettingsManagerTest extends AbstractApiTest
|
|
{
|
|
use ChamiloTestTrait;
|
|
|
|
public function testCreate(): void
|
|
{
|
|
self::bootKernel();
|
|
|
|
$settingsManager = self::getContainer()->get(SettingsManager::class);
|
|
|
|
$this->expectException(InvalidArgumentException::class);
|
|
$settingsManager->getSetting('institution');
|
|
|
|
$platform = $settingsManager->getSetting('platform.institution');
|
|
$this->assertNotEmpty($platform);
|
|
$this->assertTrue(\count($settingsManager->getSchemas()) > 0);
|
|
}
|
|
}
|
|
|