Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Disabled MainMenu caching in LeftAndMain

  • Loading branch information...
commit f6c8468d56da6fcdcea092e55665a02d4ab598fd 1 parent 8a8dbce
@chillu chillu authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 admin/tests/LeftAndMainTest.php
View
8 admin/tests/LeftAndMainTest.php
@@ -118,7 +118,7 @@ function testCanView() {
// anonymous user
$this->session()->inst_set('loggedInAs', null);
- $menuItems = singleton('LeftAndMain')->MainMenu();
+ $menuItems = singleton('LeftAndMain')->MainMenu(false);
$this->assertEquals(
array_map($allValsFn, $menuItems->column('Code')),
array(),
@@ -127,7 +127,7 @@ function testCanView() {
// restricted cms user
$this->session()->inst_set('loggedInAs', $securityonlyuser->ID);
- $menuItems = singleton('LeftAndMain')->MainMenu();
+ $menuItems = singleton('LeftAndMain')->MainMenu(false);
$this->assertEquals(
array_map($allValsFn, $menuItems->column('Code')),
array('SecurityAdmin','Help'),
@@ -136,7 +136,7 @@ function testCanView() {
// all cms sections user
$this->session()->inst_set('loggedInAs', $allcmssectionsuser->ID);
- $menuItems = singleton('LeftAndMain')->MainMenu();
+ $menuItems = singleton('LeftAndMain')->MainMenu(false);
$this->assertContains('SecurityAdmin',
array_map($allValsFn, $menuItems->column('Code')),
'Group with CMS_ACCESS_LeftAndMain permission can access all sections'
@@ -148,7 +148,7 @@ function testCanView() {
// admin
$this->session()->inst_set('loggedInAs', $adminuser->ID);
- $menuItems = singleton('LeftAndMain')->MainMenu();
+ $menuItems = singleton('LeftAndMain')->MainMenu(false);
$this->assertContains(
'SecurityAdmin',
array_map($allValsFn, $menuItems->column('Code')),
Please sign in to comment.
Something went wrong with that request. Please try again.