Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php')
-rw-r--r--tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php b/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php
index 8387058546..c74d402c64 100644
--- a/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php
+++ b/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php
@@ -16,7 +16,7 @@ use Piwik\Widget\WidgetContainerConfig;
* @group WidgetContainerConfig
* @group WidgetContainerConfigTest
*/
-class WidgetContainerConfigTest extends \PHPUnit_Framework_TestCase
+class WidgetContainerConfigTest extends \PHPUnit\Framework\TestCase
{
/**
* @var WidgetContainerConfig
@@ -25,7 +25,7 @@ class WidgetContainerConfigTest extends \PHPUnit_Framework_TestCase
private $id = 'MyTestContainer';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
$this->config = new WidgetContainerConfig();
@@ -216,13 +216,14 @@ class WidgetContainerConfigTest extends \PHPUnit_Framework_TestCase
{
$this->config->enable();
$this->config->checkIsEnabled();
+
+ $this->assertTrue(true);
}
- /**
- * @expectedException \Exception
- */
public function test_checkIsEnabled_shouldThrowException_IfDisabled()
{
+ $this->expectException(\Exception::class);
+
$this->config->disable();
$this->config->checkIsEnabled();
}