You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
761 B
PHTML
26 lines
761 B
PHTML
6 years ago
|
<?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
|
||
|
*/
|
||
|
public function testGetFunctions()
|
||
|
{
|
||
|
/** @var EngelsystemConfig|MockObject $config */
|
||
|
$config = $this->createMock(EngelsystemConfig::class);
|
||
|
|
||
|
$extension = new Config($config);
|
||
|
$functions = $extension->getFunctions();
|
||
|
|
||
|
$this->assertExtensionExists('config', [$config, 'get'], $functions);
|
||
|
}
|
||
|
}
|