Skip to content

Commit

Permalink
experssions
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Nov 6, 2017
1 parent 852cfe2 commit 0b471f1
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<?php
/* @var $this AdminController */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('expressionsConditions2Relevance');
?>

<?php
$data = LimeExpressionManager::UnitTestConvertConditionsToRelevance();
echo count($data) . " question(s) in your database contain conditions. Below is the mapping of question ID number to generated relevance equation<br/>";
Expand Down
8 changes: 8 additions & 0 deletions application/views/admin/expressions/test/functions.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/* @var $this AdminController */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('expressionsFunctions');

?>

<?php
echo ExpressionManager::ShowAllowableFunctions();
?>
8 changes: 8 additions & 0 deletions application/views/admin/expressions/test/navigation_test.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/* @var $this AdminController */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('expressionsNavigationTest');
?>


<?php
if (count($_POST) == 0) {

Expand Down
7 changes: 7 additions & 0 deletions application/views/admin/expressions/test/relevance.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<?php
/* @var $this AdminController */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('expressionsRelevance');
?>

<?php
LimeExpressionManager::UnitTestRelevance();
?>
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/* @var $this AdminController */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('expressionsStrings');

?>

<?php
LimeExpressionManager::UnitTestProcessStringContainingExpressions();
?>
8 changes: 8 additions & 0 deletions application/views/admin/expressions/test_view.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/* @var $this AdminController */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('expressionsTest');

?>

<table class="table table-striped ">
<thead>
<tr>
Expand Down
17 changes: 16 additions & 1 deletion tests/data/views/adminSurveyViews.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
*/

return [

// GENERAL OPTIONS ---------------------------------------
// --------------------------------------------------

'expressionsTest' =>['route'=>'expressions'],
'expressionsFunctions' =>['route'=>'expressions/sa/functions'],
'expressionsStrings' =>['route'=>'expressions/sa/strings_with_expressions'],
'expressionsRelevance' =>['route'=>'expressions/sa/relevance'],
'expressionsConditions2Relevance' =>['route'=>'expressions/sa/conditions2relevance'],
'expressionsNavigationTest' =>['route'=>'expressions/sa/navigation_test'],


// Survey general stuff -------------------------------------
// --------------------------------------------------

// NB the import_id is needed only for the first item OR if you need to change the survey you want to work with
'surveySummary' =>['route'=>'survey/sa/view/surveyid/{SID}','import_id'=>'454287'],

Expand All @@ -18,8 +33,8 @@
// FIXME these FAIL !!
//'surveyParticipantsIndex' =>['route'=>'tokens/sa/index/surveyid/{SID}'],
//'surveyPublicationOptions' =>['route'=>'rendersidemenulink/subaction/publication/surveyid/{SID}'],
// 'surveyResources' =>['route'=>'survey/sa/rendersidemenulink/subaction/resources/surveyid/{SID}'],

'surveyResources' =>['route'=>'survey/sa/rendersidemenulink/subaction/resources/surveyid/{SID}'],
'surveyPermissions' =>['route'=>'surveypermission/sa/view/surveyid/{SID}'],
'surveyParticipantTokenOptions' =>['route'=>'survey/sa/rendersidemenulink/subaction/tokens/surveyid/{SID}'],
'surveyQuotas' =>['route'=>'quotas/sa/index/surveyid/{SID}'],
Expand Down

0 comments on commit 0b471f1

Please sign in to comment.