Skip to content

Commit b3d0fc7

Browse files
committed
ACP2E-4228: Investigate if AC-13504 can be automated
1 parent 588eac3 commit b3d0fc7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

0 commit comments

Comments
 (0)