summaryrefslogtreecommitdiff
path: root/tests/Unit/Renderer/Twig/Extensions/ConfigTest.php
blob: 6a9cb78a3aa748a20877d1a79c4ab99112039951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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);
    }
}