Skip to content

Commit

Permalink
fixed the minimal tests we have
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed May 12, 2018
1 parent a1ef8b4 commit edba97f
Showing 1 changed file with 8 additions and 23 deletions.
@@ -1,34 +1,20 @@
<?php

use dokuwiki\plugin\config\core\configuration;
namespace dokuwiki\plugin\config\test;

use dokuwiki\plugin\config\core\ConfigParser;

/**
* @group plugin_config
* @group admin_plugins
* @group plugins
* @group bundled_plugins
*/

class plugin_config_configuration_test extends DokuWikiTest {

private $config = '';
private $meta = '';

/**
* Load config files
*/
function __construct() {
parent::__construct();

$this->config = dirname(__FILE__).'/data/config.php';
$this->meta = dirname(__FILE__).'/data/metadata.php';
require_once(dirname(__FILE__).'/../settings/Configuration.php');
}
class ConfigParserTest extends \DokuWikiTest {

function test_readconfig() {
$confmgr = new configuration($this->meta);

$conf = $this->callInaccessibleMethod($confmgr, '_read_config', [$this->config]);
$parser = new ConfigParser();
$conf = $parser->parse(__DIR__ . '/data/config.php');

// var_dump($conf);

Expand All @@ -45,9 +31,8 @@ function test_readconfig() {
}

function test_readconfig_onoff() {
$confmgr = new configuration($this->meta);

$conf = $this->callInaccessibleMethod($confmgr, '_read_config', [$this->config]);
$parser = new ConfigParser();
$conf = $parser->parse(__DIR__ . '/data/config.php');

// var_dump($conf);

Expand Down

0 comments on commit edba97f

Please sign in to comment.