diff --git a/bootstrap.php b/bootstrap.php index b74a581..6e2c468 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -16,13 +16,12 @@ use Sikofitt\Mocks\Drupal\Variables; define('CONFIG_PATH', __DIR__ . '/storage'); -$config = new Variables([]); if(!function_exists('variable_get')) { function variable_get($variableName, $default = null) { - $config = new Variables([]); + $config = new Variables(); return $config->variable_get($variableName, $default); } @@ -32,7 +31,7 @@ if(!function_exists('variable_set')) { function variable_set($variableName, $variableValue) { - $config = new Variables([]); + $config = new Variables(); return $config->variable_set($variableName, $variableValue); }; @@ -42,7 +41,7 @@ if(!function_exists('variable_del')) { function variable_del($variableName) { - $config = new Variables([]); + $config = new Variables(); return $config->variable_del($variableName); } } \ No newline at end of file diff --git a/src/Sikofitt/Mocks/Drupal/Variables.php b/src/Sikofitt/Mocks/Drupal/Variables.php index a30f77f..4d5f963 100644 --- a/src/Sikofitt/Mocks/Drupal/Variables.php +++ b/src/Sikofitt/Mocks/Drupal/Variables.php @@ -29,6 +29,10 @@ use werx\Config\Providers\JsonProvider; */ class Variables extends AbstractConfig { + public function __construct() { + + } + /** * @param $data *