| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | |
| 6 | 6 | class OptionsCollectionTest extends TestCase { |
| 7 | 7 | |
| 8 | 8 | private $options = [ |
| 9 | + 'menu_theme' => false, | |
| 9 | 10 | 'foo' => 'bar', |
| 10 | 11 | 'baz' => 'moo' |
| 11 | 12 | ]; |
| 12 | 13 | |
| @@ -11,17 +12,17 @@ | ||
| 11 | 12 | ]; |
| 12 | 13 | |
| 13 | 14 | public function testCreationFromConstructor() { |
| 14 | 15 | $collection = new OptionsCollection($this->options); |
| 15 | - $this->assertCount(2, $collection); | |
| 16 | + $this->assertCount(3, $collection); | |
| 16 | 17 | } |
| 17 | 18 | |
| 18 | 19 | public function testAddingOptions() { |
| 19 | 20 | $collection = new OptionsCollection($this->options); |
| 20 | - $this->assertCount(2, $collection); | |
| 21 | + $this->assertCount(3, $collection); | |
| 21 | 22 | |
| 22 | 23 | $collection->add(['moon' => 'rise']); |
| 23 | - $this->assertCount(3, $collection); | |
| 24 | + $this->assertCount(4, $collection); | |
| 24 | 25 | } |
| 25 | 26 | |
| 26 | 27 | public function testAccessViaArray() { |
| 27 | 28 | $collection = new OptionsCollection($this->options); |
| @@ -30,23 +31,23 @@ | ||
| 30 | 31 | } |
| 31 | 32 | |
| 32 | 33 | public function testRemoveViaArray() { |
| 33 | 34 | $collection = new OptionsCollection($this->options); |
| 34 | - $this->assertCount(2, $collection); | |
| 35 | + $this->assertCount(3, $collection); | |
| 35 | 36 | |
| 36 | 37 | unset($collection['foo']); |
| 37 | 38 | |
| 38 | - $this->assertCount(1, $collection); | |
| 39 | + $this->assertCount(2, $collection); | |
| 39 | 40 | $this->assertNull($collection['foo']); |
| 40 | 41 | } |
| 41 | 42 | |
| 42 | 43 | public function testSetViaArray() { |
| 43 | 44 | $collection = new OptionsCollection($this->options); |
| 44 | - $this->assertCount(2, $collection); | |
| 45 | + $this->assertCount(3, $collection); | |
| 45 | 46 | |
| 46 | 47 | $collection['moon'] = 'rise'; |
| 47 | 48 | |
| 48 | - $this->assertCount(3, $collection); | |
| 49 | + $this->assertCount(4, $collection); | |
| 49 | 50 | $this->assertEquals('rise', $collection['moon']); |
| 50 | 51 | } |
| 51 | 52 | |
| 52 | 53 | public function testReturnArrayWhenAsked() { |