/** * @test */ public function getSettingTest() { if (count($this->fixture->getSettings()) === 0) { $this->markTestSkipped('ext_typoscript_setup.txt not loaded'); } $this->assertInternalType('array', $this->fixture->getSetting('paths')); $this->assertInternalType('array', $this->fixture->getSetting('paths.1')); $this->assertEquals('all', $this->fixture->getSetting('paths.1.path')); }
/** * Returns the paths configured in the settings * @return array */ public function getConfiguredPaths() { $settings = $this->configurationProvider->getSettings(); if (isset($settings['paths']) && is_array($settings['paths'])) { return $settings['paths']; } return isset($settings['paths.']) ? $settings['paths.'] : array(); }