These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | namespace Redaxscript\Tests\Admin\View\Helper; |
||
3 | |||
4 | use Redaxscript\Admin\View\Helper; |
||
5 | use Redaxscript\Tests\TestCaseAbstract; |
||
6 | |||
7 | /** |
||
8 | * PanelTest |
||
9 | * |
||
10 | * @since 4.0.0 |
||
11 | * |
||
12 | * @package Redaxscript |
||
13 | * @category Tests |
||
14 | * @author Henry Ruhs |
||
15 | * |
||
16 | * @covers Redaxscript\Admin\View\Helper\Panel |
||
17 | */ |
||
18 | |||
19 | class PanelTest extends TestCaseAbstract |
||
20 | { |
||
21 | /** |
||
22 | * setUp |
||
23 | * |
||
24 | * @since 4.0.0 |
||
25 | */ |
||
26 | |||
27 | public function setUp() : void |
||
28 | { |
||
29 | parent::setUp(); |
||
30 | $this->createDatabase(); |
||
0 ignored issues
–
show
|
|||
31 | $this->installTestDummy(); |
||
0 ignored issues
–
show
The method
installTestDummy() does not seem to exist on object<Redaxscript\Tests...\View\Helper\PanelTest> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
32 | } |
||
33 | |||
34 | /** |
||
35 | * tearDown |
||
36 | * |
||
37 | * @since 4.0.0 |
||
38 | */ |
||
39 | |||
40 | public function tearDown() : void |
||
41 | { |
||
42 | $this->uninstallTestDummy(); |
||
0 ignored issues
–
show
The method
uninstallTestDummy() does not seem to exist on object<Redaxscript\Tests...\View\Helper\PanelTest> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
43 | $this->dropDatabase(); |
||
0 ignored issues
–
show
The method
dropDatabase() does not seem to exist on object<Redaxscript\Tests...\View\Helper\PanelTest> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
44 | } |
||
45 | |||
46 | /** |
||
47 | * testRender |
||
48 | * |
||
49 | * @since 4.0.0 |
||
50 | * |
||
51 | * @param array $registryArray |
||
52 | * @param array $optionArray |
||
53 | * @param string $expect |
||
54 | * |
||
55 | * @dataProvider providerAutoloader |
||
56 | */ |
||
57 | |||
58 | public function testRender(array $registryArray = [], array $optionArray = [], string $expect = null) : void |
||
59 | { |
||
60 | /* setup */ |
||
61 | |||
62 | $this->_registry->init($registryArray); |
||
63 | $adminPanel = new Helper\Panel($this->_registry, $this->_language); |
||
64 | $adminPanel->init($optionArray); |
||
65 | |||
66 | /* actual */ |
||
67 | |||
68 | $actual = $adminPanel->render(); |
||
69 | |||
70 | /* compare */ |
||
71 | |||
72 | $this->skipOnEnv('PARATEST'); |
||
0 ignored issues
–
show
The method
skipOnEnv() does not seem to exist on object<Redaxscript\Tests...\View\Helper\PanelTest> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
73 | $this->assertEquals($expect, $actual); |
||
74 | } |
||
75 | } |
||
76 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.