Passed
Push — master ( cfcf77...be88f5 )
by Aimeos
03:16
created

StandardTest::testGetSubClientInvalidName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2019-2022
6
 */
7
8
9
namespace Aimeos\Client\Html\Basket\Bulk;
10
11
12
class StandardTest extends \PHPUnit\Framework\TestCase
13
{
14
	private $object;
15
	private $context;
16
17
18
	protected function setUp() : void
19
	{
20
		$this->context = \TestHelperHtml::context();
21
22
		$this->object = new \Aimeos\Client\Html\Basket\Bulk\Standard( $this->context );
23
		$this->object->setView( \TestHelperHtml::view() );
24
	}
25
26
27
	protected function tearDown() : void
28
	{
29
		unset( $this->object, $this->context );
30
	}
31
32
33
	public function testHeader()
34
	{
35
		$output = $this->object->header();
36
37
		$this->assertStringContainsString( '<link rel="stylesheet"', $output );
38
		$this->assertStringContainsString( '<script defer', $output );
39
	}
40
41
42
	public function testBody()
43
	{
44
		$this->assertStringContainsString( '<section class="aimeos basket-bulk"', $this->object->body() );
45
	}
46
}
47