# responsive-menu/3.0.12/tests/app/Mappers/ScssBaseMapperTest.php

Responsive Menu – Mobile Menu &amp; Hamburger Menu Builder, version 3.0.12. 33 lines.

- Page: https://pluginprobe.com/plugins/responsive-menu/3.0.12/code/tests/app/Mappers/ScssBaseMapperTest.php
- Raw: https://pluginprobe.com/plugins/responsive-menu/3.0.12/raw/tests/app/Mappers/ScssBaseMapperTest.php
- Modified: 2016-08-29T14:32:28+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/Mappers/ScssBaseMapperTest.php#L10-L20`.

```php
<?php

use PHPUnit\Framework\TestCase;

class ScssBaseMapperTest extends TestCase {

  public function setUp() {
    $this->collection = new ResponsiveMenu\Collections\OptionsCollection;
    $this->scss = new scssc_free;
    $this->mapper = new ResponsiveMenu\Mappers\ScssBaseMapper($this->scss);
  }

  public function testThis() {
    $this->collection->add(new ResponsiveMenu\Models\Option('breakpoint', 6000));
    $this->collection->add(new ResponsiveMenu\Models\Option('menu_text_alignment', 'right'));
    $mapped = $this->mapper->map($this->collection);
    $mapped = $this->mapper->map($this->collection);
    $this->assertContains('max-width: 6000px)', $mapped);
    $this->assertContains('padding-right: 10%', $mapped);
    $this->assertContains('padding-right: 15%', $mapped);
  }

  public function testThat() {
    $this->collection->add(new ResponsiveMenu\Models\Option('breakpoint', 3000));
    $this->collection->add(new ResponsiveMenu\Models\Option('menu_text_alignment', 'left'));
    $mapped = $this->mapper->map($this->collection);
    $this->assertContains('max-width: 3000px)', $mapped);
    $this->assertContains('padding-left: 10%', $mapped);
    $this->assertContains('padding-left: 15%', $mapped);
  }

}

```
