Files
core/tests/php/Configuration/Parser/ThemeParserTest.php
Bob den Otter a16492815b Updating tests
2019-08-25 08:00:08 +02:00

29 lines
779 B
PHP

<?php
declare(strict_types=1);
namespace Bolt\Tests\Configuration\Parser;
use Bolt\Configuration\Parser\ThemeParser;
use Tightenco\Collect\Support\Collection;
class ThemeParserTest extends ParserTestBase
{
public function testCanParse(): void
{
$generalParser = new ThemeParser($this->getProjectDir(), self::getBasePath());
$config = $generalParser->parse();
$this->assertInstanceOf(Collection::class, $config);
}
public function testLocalOverridesParse(): void
{
$generalParser = new ThemeParser($this->getProjectDir(), self::getBasePath());
$config = $generalParser->parse();
$this->assertSame('bar', $config['foo']);
$this->assertSame(['is', 'going', 'on', 'here?'], $config['what']);
}
}