| 1 |
<?php |
| 2 |
|
| 3 |
use PHPUnit\Framework\TestCase; |
| 4 |
|
| 5 |
class ButtonTest extends TestCase { |
| 6 |
|
| 7 |
public function setUp() { |
| 8 |
$this->collection = $this->createMock('ResponsiveMenu\Collections\OptionsCollection'); |
| 9 |
$this->component = $this->createMock('ResponsiveMenu\ViewModels\Components\Button\Button'); |
| 10 |
$this->component->method('render')->willReturn('a'); |
| 11 |
$this->button = new ResponsiveMenu\ViewModels\Button($this->component); |
| 12 |
} |
| 13 |
|
| 14 |
public function testOutput() { |
| 15 |
$this->assertEquals('a', $this->button->getHtml($this->collection)); |
| 16 |
} |
| 17 |
|
| 18 |
} |
| 19 |
|