| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testFieldHolder() |
||
| 13 | { |
||
| 14 | $tabs = [ |
||
| 15 | new Tab('Main'), |
||
| 16 | new Tab('Secondary'), |
||
| 17 | $optionsTabSet = new TabSet( |
||
| 18 | 'Options', |
||
| 19 | 'Options', |
||
| 20 | new Tab('Colours'), |
||
| 21 | new Tab('Options') |
||
| 22 | ), |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $transformationTabSet = new PrintableTransformation_TabSet($tabs); |
||
| 26 | $result = $transformationTabSet->FieldHolder(); |
||
| 27 | |||
| 28 | $this->assertContains('<h1>Main</h1>', $result); |
||
| 29 | $this->assertContains('<h1>Secondary</h1>', $result); |
||
| 30 | |||
| 31 | $transformationTabSet->setTabSet($optionsTabSet); |
||
| 32 | $result = $transformationTabSet->FieldHolder(); |
||
| 33 | |||
| 34 | $this->assertContains('<h2>Options</h2>', $result); |
||
| 35 | } |
||
| 37 |