Skip to content

Commit

Permalink
Mock the session
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Oct 7, 2014
1 parent 70e919b commit 73c13e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/suites/libraries/joomla/user/JUserHelperTest.php
Expand Up @@ -36,6 +36,9 @@ protected function setUp()
parent::setUp();

$this->saveFactoryState();

// Set the session object for JUserHelper::addUserToGroup()
JFactory::$session = $this->getMockSession();
}

/**
Expand Down

0 comments on commit 73c13e6

Please sign in to comment.