DockTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRender() 0 16 1
1
<?php
2
namespace Redaxscript\Tests\Admin\View\Helper;
3
4
use Redaxscript\Admin;
5
use Redaxscript\Tests\TestCaseAbstract;
6
7
/**
8
 * DockTest
9
 *
10
 * @since 4.0.0
11
 *
12
 * @package Redaxscript
13
 * @category Tests
14
 * @author Henry Ruhs
15
 *
16
 * @covers Redaxscript\Admin\View\Helper\Dock
17
 */
18
19
class DockTest extends TestCaseAbstract
20
{
21
	/**
22
	 * testRender
23
	 *
24
	 * @since 4.0.0
25
	 *
26
	 * @param array $registryArray
27
	 * @param array $renderArray
28
	 * @param array $optionArray
29
	 * @param string $expect
30
	 *
31
	 * @dataProvider providerAutoloader
32
	 */
33
34
	public function testRender(array $registryArray = [], array $renderArray = [], array $optionArray = [], string $expect = null) : void
35
	{
36
		/* setup */
37
38
		$this->_registry->init($registryArray);
39
		$adminDock = new Admin\View\Helper\Dock($this->_registry, $this->_language);
40
		$adminDock->init($optionArray);
41
42
		/* actual */
43
44
		$actual = $adminDock->render($renderArray['table'], $renderArray['id']);
45
46
		/* compare */
47
48
		$this->assertEquals($expect, $actual);
49
	}
50
}
51