/** * test that component components are not enabled in the collection. * * @return void */ public function testInnerComponentsAreNotEnabled() { $Collection = new ComponentCollection(); $Apple = $Collection->load('Apple'); $this->assertInstanceOf('OrangeComponent', $Apple->Orange, 'class is wrong'); $result = $Collection->enabled(); $this->assertEquals(array('Apple'), $result, 'Too many components enabled.'); }