| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function test_render_attributes() |
||
| 15 | { |
||
| 16 | $button = new \Nip_Form_Button_Button(new Form()); |
||
| 17 | $button->setName('test'); |
||
| 18 | $button->setLabel('Label'); |
||
| 19 | $button->addAttribs([ |
||
| 20 | 'value' => '5', |
||
| 21 | 'data-trigger' => 'form', |
||
| 22 | 'data-vendor' => 'foe', |
||
| 23 | ]); |
||
| 24 | $button->getRenderer(); |
||
| 25 | |||
| 26 | self::assertSame( |
||
| 27 | '<button class="btn btn-primary" type="submit" name="test" data-trigger="form" data-vendor="foe" title="Label">Label</button>', |
||
| 28 | $button->getRenderer()->render() |
||
| 29 | ); |
||
| 32 |