PluginProbe
Responsive Menu – Create Mobile-Friendly Menu / 3.0.12
Responsive Menu – Create Mobile-Friendly Menu v3.0.12
4.7.4 4.7.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 All 91 releases
responsive-menu / tests / app / Mappers / ScssBaseMapperTest.php

ScssBaseMapperTest.php in Responsive Menu – Create Mobile-Friendly Menu 3.0.12, at tests/app/Mappers/ScssBaseMapperTest.php

33 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use PHPUnit\Framework\TestCase;
4
5 class ScssBaseMapperTest extends TestCase {
6
7 public function setUp() {
8 $this->collection = new ResponsiveMenu\Collections\OptionsCollection;
9 $this->scss = new scssc_free;
10 $this->mapper = new ResponsiveMenu\Mappers\ScssBaseMapper($this->scss);
11 }
12
13 public function testThis() {
14 $this->collection->add(new ResponsiveMenu\Models\Option('breakpoint', 6000));
15 $this->collection->add(new ResponsiveMenu\Models\Option('menu_text_alignment', 'right'));
16 $mapped = $this->mapper->map($this->collection);
17 $mapped = $this->mapper->map($this->collection);
18 $this->assertContains('max-width: 6000px)', $mapped);
19 $this->assertContains('padding-right: 10%', $mapped);
20 $this->assertContains('padding-right: 15%', $mapped);
21 }
22
23 public function testThat() {
24 $this->collection->add(new ResponsiveMenu\Models\Option('breakpoint', 3000));
25 $this->collection->add(new ResponsiveMenu\Models\Option('menu_text_alignment', 'left'));
26 $mapped = $this->mapper->map($this->collection);
27 $this->assertContains('max-width: 3000px)', $mapped);
28 $this->assertContains('padding-left: 10%', $mapped);
29 $this->assertContains('padding-left: 15%', $mapped);
30 }
31
32 }
33