Skip to content

Commit

Permalink
Merge pull request #11148 from hypeJunction/wwwroot-test
Browse files Browse the repository at this point in the history
chore(tests): adds basic config test
  • Loading branch information
jeabakker committed Aug 10, 2017
2 parents 38b5f58 + 5e5906b commit 294b603
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions engine/tests/phpunit/Elgg/ConfigTest.php
@@ -0,0 +1,16 @@
<?php

/**
* @group Config
*/
class ConfigTest extends \Elgg\TestCase {

public function testCanReadValuesFromConfig() {

$config = $this->getTestingConfigArray();

$this->assertEquals(elgg_get_site_url(), $config['wwwroot']);
$this->assertEquals(realpath(elgg_get_data_path()), realpath($config['dataroot']));
$this->assertEquals(realpath(elgg_get_cache_path()), realpath($config['cacheroot']));
}
}

0 comments on commit 294b603

Please sign in to comment.