diff --git a/tests/PHPUnit/Core/Plugin/ReportTest.php b/tests/PHPUnit/Core/Plugin/ReportTest.php new file mode 100644 index 0000000000000000000000000000000000000000..820137d996d73c0bc5b45dfdb39fbb9bd33ec439 --- /dev/null +++ b/tests/PHPUnit/Core/Plugin/ReportTest.php @@ -0,0 +1,37 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +use Piwik\Plugin\Report; +use Piwik\Plugins\ExamplePlugin\Reports\GetExampleReport; +use Piwik\Metrics; + +/** + * @group Core + */ +class Plugin_ReportTest extends PHPUnit_Framework_TestCase +{ + /** + * @var Report + */ + private $report; + + public function setUp() + { + $this->report = new GetExampleReport(); + } + + public function test_reportShouldUseDefaultMetrics() + { + $this->assertEquals(Metrics::getDefaultMetrics(), $this->report->getMetrics()); + } + + public function test_reportShouldUseDefaultProcessedMetrics() + { + $this->assertEquals(Metrics::getDefaultProcessedMetrics(), $this->report->getProcessedMetrics()); + } +} \ No newline at end of file