Example #1
0
 /**
  * Tests that getSingleSection() and getMultipleSections() work properly
  */
 public function testGetSections()
 {
     $configuration = new Configuration();
     $configuration->addSection(new DefaultsSection());
     $configuration->addSection(new FrontendSection('frontend frontend-1'));
     $configuration->addSection(new FrontendSection('frontend frontend-2'));
     $configuration->addSection(new FrontendSection('frontend frontend-3'));
     $this->assertNotNull($configuration->getDefaultsSection());
     $this->assertCount(3, $configuration->getFrontendSections());
 }