aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Routing/RoutingTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/AppFramework/Routing/RoutingTest.php')
-rw-r--r--tests/lib/AppFramework/Routing/RoutingTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/AppFramework/Routing/RoutingTest.php b/tests/lib/AppFramework/Routing/RoutingTest.php
index 559561a8ccd..1b7ab054a0f 100644
--- a/tests/lib/AppFramework/Routing/RoutingTest.php
+++ b/tests/lib/AppFramework/Routing/RoutingTest.php
@@ -122,11 +122,11 @@ class RoutingTest extends \Test\TestCase
$this->assertSimpleOCSRoute($routes, 'folders.open', 'DELETE', '/apps/app1/folders/{folderId}/open', 'FoldersController', 'open', [], [], '_something');
}
- /**
- * @expectedException \UnexpectedValueException
- */
+
public function testSimpleRouteWithBrokenName()
{
+ $this->expectException(\UnexpectedValueException::class);
+
$routes = array('routes' => array(
array('name' => 'folders_open', 'url' => '/folders/{folderId}/open', 'verb' => 'delete')
));
@@ -144,10 +144,10 @@ class RoutingTest extends \Test\TestCase
$config->register();
}
- /**
- * @expectedException \UnexpectedValueException
- */
+
public function testSimpleOCSRouteWithBrokenName() {
+ $this->expectException(\UnexpectedValueException::class);
+
$routes = ['ocs' => [
['name' => 'folders_open', 'url' => '/folders/{folderId}/open', 'verb' => 'delete']
]];