Inheritance: extends yii\web\AssetBundle
Example #1
0
 public function testAlternativeEndPage()
 {
     $this->getView()->expand_imports = false;
     $this->getView()->force_charset = false;
     minify\tests\unit\data\TestAssetBundle::register($this->getView());
     ob_start();
     echo '<html>This is test page</html>';
     $this->getView()->endPage(false);
 }
Example #2
0
 public function testAlternativeEndPageWithVersion()
 {
     $view = $this->getView();
     $view->assetManager->appendTimestamp = true;
     $view->expand_imports = false;
     $view->force_charset = false;
     minify\tests\unit\data\TestAssetBundle::register($view);
     ob_start();
     echo '<html>This is test page versioning</html>';
     $view->endPage(false);
 }
Example #3
0
 public function testExcludeBundle()
 {
     $view = $this->getView();
     $view->excludeBundles = [minify\tests\unit\data\ExcludedAssetBundle::className()];
     minify\tests\unit\data\TestAssetBundle::register($view);
     minify\tests\unit\data\ExcludedAssetBundle::register($view);
     ob_start();
     echo '<html>This is test page versioning</html>';
     $view->endBody();
     $this->assertEquals(2, count($view->cssFiles));
     $view->endPage(false);
 }