| @@ -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() { |