diff --git a/config/routing.yml b/config/routing.yml index cfed85c8..4406114d 100644 --- a/config/routing.yml +++ b/config/routing.yml @@ -1,5 +1,5 @@ board3_portal_controller: - pattern: /portal + path: /portal defaults: { _controller: board3.portal.main:handle } # This is currently not supported yet @@ -9,5 +9,5 @@ board3_portal_controller: # Redirect to portal by default board3_portal_redirect_controller: - pattern: / + path: / defaults: { _controller: board3.portal.main:handle } diff --git a/tests/functional/portal_no_error_test.php b/tests/functional/portal_no_error_test.php index cfd58479..481c0fcc 100644 --- a/tests/functional/portal_no_error_test.php +++ b/tests/functional/portal_no_error_test.php @@ -28,7 +28,18 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra public function test_enable_subsilver() { $crawler = self::request('GET', 'adm/index.php?i=acp_styles&mode=install&sid=' . $this->sid); - $link = $crawler->selectLink('Install style')->link()->getUri(); + $links = $crawler->filter('.actions a'); + $link = $links->selectLink('Install style')->link()->getUri(); + for ($i = 0; $i < sizeof($links); $i++) + { + $link = $links->eq($i)->selectLink('Install style')->link()->getUri(); + + if (strpos($link, 'subsilver2') !== false) + { + break; + } + } + $crawler = self::request('GET', substr($link, strpos($link, '/adm') + 1)); $this->assertContains('Style "subsilver2" has been installed', $crawler->text()); }