Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public function setUp():void {
  2. parent::setUp();
  3. $this->channel_store = $this->createMock('ChannelStore');
  4. $this->application = $this->getMockBuilder(JApplication::class)
  5. ->setMethods(['get', 'set'])
  6. ->getMock();
  7. JFactory::$application = $this->application;
  8.  
  9. $this->log = $this->getMockBuilder(JLog::class)
  10. ->setMethods(['add'])
  11. ->getMock();
  12.  
  13. // JLog = $this->log; ???
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement