PluginProbe
Responsive Menu – Create Mobile-Friendly Menu / 3.1.13
Responsive Menu – Create Mobile-Friendly Menu v3.1.13
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 4.2.0 All 90 releases
← All changes | tests/app/Collections/OptionsCollectionTest.php +7 -8 4.0.43.1.13 View file →
@@ -5,9 +5,8 @@
5 5
6 6 class OptionsCollectionTest extends TestCase {
7 7
8 8 private $options = [
9 - 'menu_theme' => false,
10 9 'foo' => 'bar',
11 10 'baz' => 'moo'
12 11 ];
13 12
@@ -12,17 +11,17 @@
12 11 ];
13 12
14 13 public function testCreationFromConstructor() {
15 14 $collection = new OptionsCollection($this->options);
16 - $this->assertCount(3, $collection);
15 + $this->assertCount(2, $collection);
17 16 }
18 17
19 18 public function testAddingOptions() {
20 19 $collection = new OptionsCollection($this->options);
21 - $this->assertCount(3, $collection);
20 + $this->assertCount(2, $collection);
22 21
23 22 $collection->add(['moon' => 'rise']);
24 - $this->assertCount(4, $collection);
23 + $this->assertCount(3, $collection);
25 24 }
26 25
27 26 public function testAccessViaArray() {
28 27 $collection = new OptionsCollection($this->options);
@@ -31,23 +30,23 @@
31 30 }
32 31
33 32 public function testRemoveViaArray() {
34 33 $collection = new OptionsCollection($this->options);
35 - $this->assertCount(3, $collection);
34 + $this->assertCount(2, $collection);
36 35
37 36 unset($collection['foo']);
38 37
39 - $this->assertCount(2, $collection);
38 + $this->assertCount(1, $collection);
40 39 $this->assertNull($collection['foo']);
41 40 }
42 41
43 42 public function testSetViaArray() {
44 43 $collection = new OptionsCollection($this->options);
45 - $this->assertCount(3, $collection);
44 + $this->assertCount(2, $collection);
46 45
47 46 $collection['moon'] = 'rise';
48 47
49 - $this->assertCount(4, $collection);
48 + $this->assertCount(3, $collection);
50 49 $this->assertEquals('rise', $collection['moon']);
51 50 }
52 51
53 52 public function testReturnArrayWhenAsked() {