File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
dev/tests/integration/testsuite/Magento/Framework/View/Asset Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright 2025 Adobe
4
+ * All Rights Reserved.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \Framework \View \Asset ;
9
+
10
+ use Magento \TestFramework \Helper \Bootstrap ;
11
+ use PHPUnit \Framework \Attributes \CoversClass ;
12
+ use PHPUnit \Framework \Attributes \TestWith ;
13
+ use PHPUnit \Framework \TestCase ;
14
+
15
+ #[
16
+ CoversClass(Minification::class),
17
+ ]
18
+ class MinificationTest extends TestCase
19
+ {
20
+ /**
21
+ * @var Minification
22
+ */
23
+ private $ model ;
24
+
25
+ protected function setUp (): void
26
+ {
27
+ parent ::setUp ();
28
+ $ this ->model = Bootstrap::getObjectManager ()->get (Minification::class);
29
+ }
30
+
31
+ #[
32
+ TestWith(['js ' , '/hugerte/ ' ]),
33
+ TestWith(['css ' , '/hugerte/ ' ]),
34
+ ]
35
+ public function testGetExcludes (string $ contentType , string $ path ): void
36
+ {
37
+ $ excludes = $ this ->model ->getExcludes ($ contentType );
38
+ self ::assertContains ($ path , $ excludes );
39
+ }
40
+ }
You can’t perform that action at this time.
0 commit comments