Open Monograph Press  3.3.0
UsageStatsLoaderTest.php
1 <?php
2 
17 import('lib.pkp.tests.PKPTestCase');
18 import('plugins.generic.usageStats.UsageStatsLoader');
19 
21 
22  //
23  // Implementing protected template methods from PKPTestCase
24  //
28  protected function setUp() : void {
29  parent::setUp();
30 
31  // Instantiate the class for testing.
32  // disable the original constructor and mock the abstract getMetricType()
33  $this->loader = $this->getMockBuilder('UsageStatsLoader')
34  ->setMethods(array('__construct', 'getMetricType'))
35  ->setConstructorArgs(array())
36  ->disableOriginalConstructor()
37  ->getMock();
38  }
39 
40 }
UsageStatsLoaderTest
Test class for the UsageStatsLoader class.
Definition: UsageStatsLoaderTest.php:20
PKPTestCase
Class that implements functionality common to all PKP unit test cases.
Definition: PKPTestCase.inc.php:27
UsageStatsLoaderTest\setUp
setUp()
Definition: UsageStatsLoaderTest.php:28