Skip to content

Commit

Permalink
Merge branch 'Release-1.6' into ci_update
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierViret committed Mar 1, 2024
2 parents 2c70a85 + 86a00fe commit 461997b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/orif/common/Views/AdminMenuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ public function test_panel_config_with_administrator_session()
->access_lvl_admin;
$_SESSION['_ci_previous_url'] = 'url';

$result = $this->withSession()->get('user/admin/list_user');
// Assertions
$response = $result->response();
$body = $response->getBody();
$result->assertSee(lang('user_lang.title_user_list'), 'h1');
// With admin session, try to display the content of each admin tab
$adminTabs = config('\Common\Config\AdminPanelConfig')->tabs;

foreach ($adminTabs as $adminTab) {
$result = $this->withSession()->get($adminTab['pageLink']);

// Assertions
$response = $result->response();
$body = $response->getBody();
$result->assertSee(lang($adminTab['title']));
}
}
}
}

0 comments on commit 461997b

Please sign in to comment.