Skip to content

Commit

Permalink
DEV: viewTests - Users
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Nov 6, 2017
1 parent 478ffcc commit 0b38455
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions application/views/admin/checkintegrity/check_view.php
@@ -1,4 +1,5 @@
<?php
/* @var $this AdminController */
/* @var $dataProvider CActiveDataProvider */

// DO NOT REMOVE This is for automated testing to validate we see that page
Expand Down
5 changes: 3 additions & 2 deletions application/views/admin/user/editusers.php
@@ -1,8 +1,9 @@
kdf<?php
<?php
/* @var $this AdminController */
/* @var $dataProvider CActiveDataProvider */

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

?>
<div class="container-fluid">
Expand Down
2 changes: 2 additions & 0 deletions application/views/admin/user/modifyuser.php
Expand Up @@ -2,6 +2,8 @@
/**
* @var User $oUser
*/
// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('usersIndex');
?>

<div class="pagetitle h3">
Expand Down
2 changes: 2 additions & 0 deletions tests/controllers/AdminViewsTest.php
Expand Up @@ -84,6 +84,8 @@ public function testSettingsViews($name,$view){
*/
public function testUsersViews($name,$view){
$this->findViewTag($name,$view);
// use Admin user
$view['route'] = ReplaceFields($view['route'],['{UID}'=>1]);
}

}
2 changes: 1 addition & 1 deletion tests/data/views/adminUsersViews.php
Expand Up @@ -9,5 +9,5 @@
// --------------------------------------------------

['usersIndex', ['route'=>'user/sa/index']],

['modifyUser', ['route'=>'user/sa/modifyuser/uid/{UID}']],
];

0 comments on commit 0b38455

Please sign in to comment.