Skip to content

Commit

Permalink
Fixes config issue with tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
deadbeef84 committed May 5, 2015
1 parent 9a5770b commit b749117
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 49 deletions.
40 changes: 16 additions & 24 deletions test/Curry/Tests/CmsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,23 @@ public static function setUpBeforeClass()

self::$fixturesDirectory = realpath(dirname(dirname(__DIR__)).'/fixtures');
$app = App::create(array (
'curry' =>
array (
'name' => 'Curry Unit Tests',
'adminEmail' => 'info@currycms.com',
'cache' => array('method' => 'none'),
'pageCache' => false,
'autoBackup' => false,
'projectPath' => self::$fixturesDirectory,
'migrationVersion' => App::MIGRATION_VERSION,
'template' => array(
'root' => self::$fixturesDirectory.'/templates',
'options' => array(
'cache' => false,
),
),
'propel' => array(
'conf' => self::$fixturesDirectory.'/propel/build/conf/curry-conf.php',
'projectClassPath' => self::$fixturesDirectory.'/propel/build/classes',
'name' => 'Curry Unit Tests',
'adminEmail' => 'info@currycms.com',
'cache' => array('method' => 'none'),
'pageCache' => false,
'autoBackup' => false,
'projectPath' => self::$fixturesDirectory,
'migrationVersion' => App::MIGRATION_VERSION,
'template' => array(
'root' => self::$fixturesDirectory.'/templates',
'options' => array(
'cache' => false,
),
),
'propel' => array(
'conf' => self::$fixturesDirectory.'/propel/build/conf/curry-conf.php',
'projectClassPath' => self::$fixturesDirectory.'/propel/build/classes',
),
));
$app->boot();

Expand All @@ -50,17 +47,12 @@ public static function setUpBeforeClass()
throw $e;
}

$setup = new \Curry_Backend_Setup($app);
$setup = new \Curry\Backend\Setup($app);
$setup->saveConfiguration(array(
'template' => 'empty',
'admin' => array(
'username' => 'admin',
'password' => 'admin',
),
'user' => array(
'username' => 'user',
'password' => 'user',
)
));
$app->cache->clean();
}
Expand Down
22 changes: 0 additions & 22 deletions test/fixtures/config.php

This file was deleted.

3 changes: 0 additions & 3 deletions test/fixtures/hooks.php

This file was deleted.

File renamed without changes.

0 comments on commit b749117

Please sign in to comment.