mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
29
test/bootstrap/functional.php
Executable file
29
test/bootstrap/functional.php
Executable file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// guess current application
|
||||
if (!isset($app))
|
||||
{
|
||||
$traces = debug_backtrace();
|
||||
$caller = $traces[0];
|
||||
$app = array_pop(explode(DIRECTORY_SEPARATOR, dirname($caller['file'])));
|
||||
}
|
||||
|
||||
// define symfony constant
|
||||
define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/../..'));
|
||||
define('SF_APP', $app);
|
||||
define('SF_ENVIRONMENT', 'test');
|
||||
define('SF_DEBUG', true);
|
||||
|
||||
// initialize symfony
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
// remove all cache
|
||||
sfToolkit::clearDirectory(sfConfig::get('sf_cache_dir'));
|
17
test/bootstrap/unit.php
Executable file
17
test/bootstrap/unit.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
$_test_dir = realpath(dirname(__FILE__).'/..');
|
||||
define('SF_ROOT_DIR', realpath($_test_dir.'/..'));
|
||||
|
||||
// symfony directories
|
||||
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
require_once($sf_symfony_lib_dir.'/vendor/lime/lime.php');
|
15
test/functional/atlbiomed/clientManagerActionsTest.php
Executable file
15
test/functional/atlbiomed/clientManagerActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/clientManager/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'clientManager')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/dashboardActionsTest.php
Executable file
15
test/functional/atlbiomed/dashboardActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/dashboard/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'dashboard')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/faqActionsTest.php
Executable file
15
test/functional/atlbiomed/faqActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/faq/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'faq')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/mapsActionsTest.php
Executable file
15
test/functional/atlbiomed/mapsActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/maps/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'maps')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/messagesActionsTest.php
Executable file
15
test/functional/atlbiomed/messagesActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/messages/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'messages')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/processActionsTest.php
Executable file
15
test/functional/atlbiomed/processActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/process/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'process')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/schedulerActionsTest.php
Executable file
15
test/functional/atlbiomed/schedulerActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/scheduler/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'scheduler')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/securityActionsTest.php
Executable file
15
test/functional/atlbiomed/securityActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/security/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'security')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/supportActionsTest.php
Executable file
15
test/functional/atlbiomed/supportActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/support/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'support')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/unproccessedActionsTest.php
Executable file
15
test/functional/atlbiomed/unproccessedActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/unproccessed/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'unproccessed')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/unprocessedActionsTest.php
Executable file
15
test/functional/atlbiomed/unprocessedActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/unprocessed/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'unprocessed')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/userManagerActionsTest.php
Executable file
15
test/functional/atlbiomed/userManagerActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/userManager/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'userManager')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
15
test/functional/atlbiomed/workOrderActionsTest.php
Executable file
15
test/functional/atlbiomed/workOrderActionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/workOrder/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', 'workOrder')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
Reference in New Issue
Block a user