2018-08-26 12:23:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Engelsystem\Test\Unit\Renderer\Twig\Extensions;
|
|
|
|
|
|
|
|
use Engelsystem\Config\Config as EngelsystemConfig;
|
|
|
|
use Engelsystem\Renderer\Twig\Extensions\Config;
|
|
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
|
|
|
|
|
|
|
class ConfigTest extends ExtensionTest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @covers \Engelsystem\Renderer\Twig\Extensions\Config::__construct
|
|
|
|
* @covers \Engelsystem\Renderer\Twig\Extensions\Config::getFunctions
|
|
|
|
*/
|
2022-12-14 19:15:20 +01:00
|
|
|
public function testGetFunctions(): void
|
2018-08-26 12:23:47 +02:00
|
|
|
{
|
|
|
|
/** @var EngelsystemConfig|MockObject $config */
|
|
|
|
$config = $this->createMock(EngelsystemConfig::class);
|
|
|
|
|
|
|
|
$extension = new Config($config);
|
|
|
|
$functions = $extension->getFunctions();
|
|
|
|
|
|
|
|
$this->assertExtensionExists('config', [$config, 'get'], $functions);
|
|
|
|
}
|
|
|
|
}
|