<?php

use UWDOEM\Framework\Etc\Settings;

class MockSettings extends Settings {

    public static function clear() {
        static::$settings = [];
    }
}


class SettingsTest extends PHPUnit_Framework_TestCase {

    public function testAddTemplateTheme() {
        MockSettings::addTemplateTheme("theme1");
        MockSettings::addTemplateTheme("theme2");

        $result = MockSettings::getTemplateThemes();

        $this->assertContains("theme1", $result);
        $this->assertContains("theme2", $result);
        $this->assertEquals(2, sizeof($result));

        MockSettings::clear();
    }

}


<?php

use UWDOEM\Framework\Etc\Settings;

class MockSettings extends Settings {

    public static function clear() {
        static::$settings["templateDirectories"] = [];
    }
}


class SettingsTest extends PHPUnit_Framework_TestCase {

    public function testAddTemplateTheme() {
        MockSettings::addTemplateTheme("theme1");
        MockSettings::addTemplateTheme("theme2");

        $result = MockSettings::getTemplateDirectories();

        $this->assertContains("theme1", $result[0]);
        $this->assertContains("theme2", $result[1]);
        $this->assertEquals(2, sizeof($result));

        MockSettings::clear();
    }

}


Adjust test to new settings.
Adjust test to new settings.
