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.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php b/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php
index 55c1ece71c..c74d402c64 100644
--- a/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php
+++ b/tests/PHPUnit/Unit/Widget/WidgetContainerConfigTest.php
@@ -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();
}