public function testBoltAppSetup() { $config = new ResourceManager(TEST_ROOT); $app = new Application(array('resources' => $config)); $this->assertEquals($config->getPaths(), $app['resources']->getPaths()); // Test that the Application has initialised the resources, injecting in config values. $this->assertContains(TEST_ROOT . "/theme", $config->getPath("theme")); $this->assertNotEmpty($config->getUrl("canonical")); }
public function testBoltAppSetup() { $config = new ResourceManager(new \Pimple(['rootpath' => TEST_ROOT, 'pathmanager' => new PlatformFileSystemPathFactory()])); $config->compat(); $app = new Application(['resources' => $config]); $this->assertEquals($config->getPaths(), $app['resources']->getPaths()); // Test that the Application has initialised the resources, injecting in config values. $this->assertContains(Path::fromString(TEST_ROOT . '/theme')->string(), $config->getPath('theme')); $this->assertNotEmpty($config->getUrl('canonical')); }