Skip to content
Snippets Groups Projects
Commit 277d7158 authored by Demian Katz's avatar Demian Katz
Browse files

More change-tolerant test.

parent 738bc206
No related merge requests found
......@@ -99,7 +99,14 @@ class ThemeInfoTest extends Unit\TestCase
{
$ti = $this->getThemeInfo();
$ti->setTheme('child');
$this->assertEquals(['child' => ['extends' => 'parent'], 'parent' => ['extends' => false]], $ti->getThemeInfo());
$expectedChild = include "{$this->fixturePath}/child/theme.config.php";
$expectedParent = include "{$this->fixturePath}/parent/theme.config.php";
$this->assertEquals('parent', $expectedChild['extends']);
$this->assertEquals(false, $expectedParent['extends']);
$this->assertEquals(
['child' => $expectedChild, 'parent' => $expectedParent],
$ti->getThemeInfo()
);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment