Completed
Push — master ( efd2a6...0e91b3 )
by Aimeos
03:22
created

StandardTest::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2020
6
 */
7
8
9
namespace Aimeos\Client\Html\Catalog\Price;
10
11
12
class StandardTest extends \PHPUnit\Framework\TestCase
13
{
14
	private $object;
15
16
17
	protected function setUp() : void
18
	{
19
		$this->object = new \Aimeos\Client\Html\Catalog\Price\Standard( \TestHelperHtml::getContext() );
20
		$this->object->setView( \TestHelperHtml::getView() );
21
	}
22
23
24
	protected function tearDown() : void
25
	{
26
		unset( $this->object );
27
	}
28
29
30
	public function testGetBody()
31
	{
32
		$this->object->setView( $this->object->addData( $this->object->getView() ) );
33
		$output = $this->object->getBody();
34
35
		$this->assertStringContainsString( '<section class="aimeos catalog-filter"', $output );
36
		$this->assertStringContainsString( '<section class="catalog-filter-price">', $output );
37
	}
38
39
40
	public function testGetSubClient()
41
	{
42
		$client = $this->object->getSubClient( 'price', 'Standard' );
43
		$this->assertInstanceOf( '\\Aimeos\\Client\\HTML\\Iface', $client );
44
	}
45
}
46