Exemplo n.º 1
0
 /**
  *
  */
 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);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     Yii::$app->view->theme = Yii::createObject(['class' => \webtoolsnz\AdminLte\Theme::className()]);
 }