/** * */ public function testPathMapGenerator() { $theme = new \webtoolsnz\AdminLte\Theme(); $expected = ['@app/views' => ['@app/views', $theme->getPath('views')]]; $this->assertEquals($expected, $theme->pathMap); $theme = new \webtoolsnz\AdminLte\Theme(['root' => '@foo']); $expected = ['@foo/views' => ['@foo/views', $theme->getPath('views')]]; $this->assertEquals($expected, $theme->pathMap); }
public function setUp() { parent::setUp(); Yii::$app->view->theme = Yii::createObject(['class' => \webtoolsnz\AdminLte\Theme::className()]); }