Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
68 | public function testRender(array $registryArray = [], int $articleId = null, array $expectArray = []) : void |
||
69 | { |
||
70 | /* setup */ |
||
71 | |||
72 | $this->_registry->init($registryArray); |
||
73 | $articleForm = new Admin\View\ArticleForm($this->_registry, $this->_language); |
||
74 | |||
75 | /* actual */ |
||
76 | |||
77 | $actual = $articleForm->render($articleId); |
||
78 | |||
79 | /* compare */ |
||
80 | |||
81 | $this->assertStringStartsWith($expectArray['start'], $actual); |
||
82 | $this->assertStringEndsWith($expectArray['end'], $actual); |
||
83 | } |
||
84 | } |
||
85 |