public function testSavingNamespacedConfig() { $group = md5(time() . uniqid()); $namespace = md5(time() . uniqid()); $item = 'this.is.the.test.key'; $value = $group; $this->saver->save($item, $value, 'testing', $group, $namespace); $path = DIR_APPLICATION . "/config/generated_overrides/{$namespace}/{$group}.php"; $exists = $this->files->exists($path); $array = array(); if ($exists) { $array = $this->files->getRequire($path); $this->files->delete($path); } $this->assertTrue($exists, 'Failed to save file'); $this->assertEquals($value, array_get($array, $item), 'Failed to save correct value.'); }
public function __construct(Filesystem $files, $environment = null) { parent::__construct($files); $this->environment = $environment; }