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/Tour/tests/System/APITest.php')
-rw-r--r--plugins/Tour/tests/System/APITest.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/Tour/tests/System/APITest.php b/plugins/Tour/tests/System/APITest.php
index 0287f417b3..c790eb62d2 100644
--- a/plugins/Tour/tests/System/APITest.php
+++ b/plugins/Tour/tests/System/APITest.php
@@ -61,21 +61,19 @@ class APITest extends SystemTestCase
$this->assertTrue($steps[1]['isSkipped']);
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Challenge already completed
- */
public function test_skipStep_alreadyCompleted()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('Challenge already completed');
+
Request::processRequest('Tour.skipChallenge', array('id' => 'track_data'));
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Challenge not found
- */
public function test_skipStep_invalid()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('Challenge not found');
+
Request::processRequest('Tour.skipChallenge', array('id' => 'foobarbaz'));
}