Fix some issues with tests

This commit is contained in:
Damian Mooyman 2016-11-02 09:11:35 +13:00
parent c0c219e178
commit 6da36a9ed1
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
2 changed files with 5 additions and 1 deletions

View File

@ -19,3 +19,7 @@ ini_set('display_errors', 1);
if(!file_exists(BASE_PATH . '/assets')) { if(!file_exists(BASE_PATH . '/assets')) {
mkdir(BASE_PATH . '/assets', 02775); mkdir(BASE_PATH . '/assets', 02775);
} }
if (empty($_SERVER['HTTP_HOST'])) {
$_SERVER['HTTP_HOST'] = 'localhost';
}

View File

@ -76,7 +76,7 @@ class HTMLEditorConfigTest extends SapphireTest {
// Plugin specified with standard location // Plugin specified with standard location
$this->assertContains('plugin4', array_keys($plugins)); $this->assertContains('plugin4', array_keys($plugins));
$this->assertEquals( $this->assertEquals(
'http://mysite.com/subdir/framework/admin/thirdparty/tinymce/plugins/plugin4/plugin.min.js', 'http://mysite.com/subdir/'.ADMIN_THIRDPARTY_DIR.'/tinymce/plugins/plugin4/plugin.min.js',
$plugins['plugin4'] $plugins['plugin4']
); );