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 'plugins/Login/tests/Integration/APITest.php')
-rw-r--r--plugins/Login/tests/Integration/APITest.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Login/tests/Integration/APITest.php b/plugins/Login/tests/Integration/APITest.php
index 9c09ccfa92..c250abfa46 100644
--- a/plugins/Login/tests/Integration/APITest.php
+++ b/plugins/Login/tests/Integration/APITest.php
@@ -24,19 +24,18 @@ class APITest extends IntegrationTestCase
*/
private $api;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
$this->api = API::getInstance();
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage checkUserHasSuperUserAccess
- */
public function test_unblockBruteForceIPs_requiresSuperUser()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('checkUserHasSuperUserAccess');
+
FakeAccess::clearAccess(false, array(1,2,3));
$this->api->unblockBruteForceIPs();
}