Passed
Push — master ( 50ef06...39e934 )
by Aimeos
03:50
created

BundleTest::testGet()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2015-2024
6
 */
7
8
9
namespace Aimeos\Admin;
10
11
12
class BundleTest extends \PHPUnit\Framework\TestCase
13
{
14
	public function testGet()
15
	{
16
		$manifest = dirname( __DIR__, 3 ) . '/manifest.jsb2';
17
18
		$this->assertFalse( empty( \Aimeos\Admin\JQAdm\Bundle::get( [$manifest], 'index-css' ) ) );
19
		$this->assertFalse( empty( \Aimeos\Admin\JQAdm\Bundle::get( [$manifest], 'index-ltr-css' ) ) );
20
		$this->assertFalse( empty( \Aimeos\Admin\JQAdm\Bundle::get( [$manifest], 'index-rtl-css' ) ) );
21
		$this->assertFalse( empty( \Aimeos\Admin\JQAdm\Bundle::get( [$manifest], 'index-js' ) ) );
22
		$this->assertFalse( empty( \Aimeos\Admin\JQAdm\Bundle::get( [$manifest], 'vendor-js' ) ) );
23
	}
24
}
25