Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit e5dd0b3

Browse files
author
Michael Grauer
committed
BUG: Refs #209. Changed test file so that tests pass.
I needed to add in a reference to the module constant file, which I may have done in a sub-optimal way.
1 parent 9a3d215 commit e5dd0b3

File tree

2 files changed

+10
-43
lines changed

2 files changed

+10
-43
lines changed

modules/batchmake/tests/controllers/ConfigControllerTest

Lines changed: 0 additions & 37 deletions
This file was deleted.

modules/batchmake/tests/controllers/ConfigControllerTest.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
PURPOSE. See the above copyright notices for more information.
1111
=========================================================================*/
1212

13+
// need to include the module constant for this test
14+
require_once str_replace('tests', 'constant', str_replace('controllers', 'module.php', dirname(__FILE__)));
1315
/** config controller tests*/
1416
class ConfigControllerTest extends ControllerTestCase
1517
{
18+
1619
/** set up tests*/
1720
public function setUp()
1821
{
@@ -26,12 +29,13 @@ public function testIndexAction()
2629
{
2730
$this->dispatchUrI("/batchmake/config/index");
2831
$body = $this->getBody();
29-
//$this->assertAction("index");
30-
//$this->assertModule("batchmake");
31-
//if(strpos($body, "Module version (config file):") === false)
32-
// {
33-
// $this->fail('Unable to find body element');
34-
// }
32+
33+
$this->assertAction("index");
34+
$this->assertModule("batchmake");
35+
if(strpos($body, "Batchmake Configuration") === false)
36+
{
37+
$this->fail('Unable to find body element');
38+
}
3539
}
3640

3741
}

0 commit comments

Comments
 (0)