Skip to main content
2 votes
Accepted

Overwrite the global database driver

You can set the database driver, just not with any simple function (that I know of), such as setDbo. If you look at the Joomla Database Framework package: use Joomla\Database; class MyApplication ...
Lodder's user avatar
  • 26.9k
1 vote
Accepted

How do I unit test component methods that use the logger?

In the end I didn't find a way to do this through mocking, but it is very simple to implement a class that does everything I need from the logger: class JLog { const DEBUG = 5; const INFO = 4;...
glenatron's user avatar
  • 239

Only top scored, non community-wiki answers of a minimum length are eligible