Skip to content

Commit

Permalink
Adding README file.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 7, 2009
1 parent 067ce63 commit 296ba02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h2. Acl Menu Plugin

This plugin provides a component for generating menus based off of the current user session and integrates well with the "AcoExtras Plugin":http://github.com/markstory/acl_extras/tree/master I also maintain. See "mark-story.com for additional info and usage":http://mark-story.com/posts/view/acl-menu-component
2 changes: 0 additions & 2 deletions controllers/components/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* Uses ACL to generate Menus.
*
* Copyright 2008, Mark Story.
* 823 millwood rd. apt#3
* toronto, ontario M4G 1W3
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
Expand Down
10 changes: 4 additions & 6 deletions tests/cases/components/menu.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* Menu Component Test
*
* Copyright 2008, Mark Story.
* 823 millwood rd.
* toronto, ontario M4G 1W3
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
Expand All @@ -15,7 +13,7 @@
* @author Mark Story <mark@mark-story.com>
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
App::import('Component', array('Menu', 'Acl', 'Auth'));
App::import('Component', array('AclMenu.Menu', 'Acl', 'Auth'));
App::import('Controller', 'AppController');

class TestMenuComponent extends MenuComponent {
Expand Down Expand Up @@ -69,11 +67,11 @@ function admin_action(){}
class MenuComponentTestCase extends CakeTestCase {

/**
* undocumented function
* start test setup steps
*
* @return void
**/
function setUp() {
function startTest() {
$this->Menu = new TestMenuComponent();
$this->Controller = new TestMenuController();
$this->Menu->Acl = new MenuTestMockAclComponent();
Expand Down Expand Up @@ -427,7 +425,7 @@ function testWeightSorting() {
Cache::delete('User1_'.$this->Menu->cacheKey);
}

function tearDown() {
function endTest() {
ClassRegistry::flush();
$this->Menu->clearCache();
Configure::write('Routing.admin', $this->_admin);
Expand Down

0 comments on commit 296ba02

Please sign in to comment.