? ? Failure

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
17 Sep 2016

Summary of Changes

  • In the application class, catch exceptions if an event dispatcher is not set
  • Default behavior for loadIdentity() is to load a null JUser object instead of trying to load the user out of the factory (and inherently the session)
  • Missing a use statement for setting the event dispatcher which breaks the typehint
  • Check if a dispatcher exists in injector methods before trying to set it as the trait doesn't allow a null argument
  • Tweak the OAuth1 client class to pull dependencies from the application
  • Default to creating a mocked event dispatcher when using the mocker APIs to create an application
  • Allow the app's setSession method to be mocked
  • Refactor the mocked event dispatcher for full compatibility with the new API

Testing Instructions

Validate unit tests pass, review code changes

Documentation Changes Required

N/A

avatar mbabker mbabker - open - 17 Sep 2016
avatar mbabker mbabker - change - 17 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Sep 2016
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Sep 2016
Category Libraries Unit Tests
avatar photodude
photodude - comment - 19 Sep 2016

Is the php 7/HHVM error in travis something "known" in the 4.x development, or something that needs to be addressed?

Fatal error: Class JApplicationDaemon contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Joomla\Application\AbstractApplication::doExecute) in /libraries/joomla/application/daemon.php on line 915
avatar mbabker
mbabker - comment - 19 Sep 2016

It's patched already in one of my other PRs.

avatar wilsonge wilsonge - change - 19 Sep 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-09-19 23:02:31
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment