mirror of
https://github.com/jbcr/core.git
synced 2026-03-25 09:22:19 +01:00
29 lines
779 B
PHP
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']);
|
|
}
|
|
}
|