# responsive-menu/3.0.12/tests/app/ViewModels/ButtonTest.php

Responsive Menu – Create Mobile-Friendly Menu, version 3.0.12. 19 lines.

- Page: https://pluginprobe.com/plugins/responsive-menu/3.0.12/code/tests/app/ViewModels/ButtonTest.php
- Raw: https://pluginprobe.com/plugins/responsive-menu/3.0.12/raw/tests/app/ViewModels/ButtonTest.php
- Modified: 2016-08-20T23:47:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/responsive-menu/3.0.12/code/tests/app/ViewModels/ButtonTest.php#L10-L20`.

```php
<?php

use PHPUnit\Framework\TestCase;

class ButtonTest extends TestCase {

  public function setUp() {
    $this->collection = $this->createMock('ResponsiveMenu\Collections\OptionsCollection');
    $this->component = $this->createMock('ResponsiveMenu\ViewModels\Components\Button\Button');
    $this->component->method('render')->willReturn('a');
    $this->button = new ResponsiveMenu\ViewModels\Button($this->component);
  }

  public function testOutput() {
      $this->assertEquals('a', $this->button->getHtml($this->collection));
  }

}

```
