Skip to content

Commit

Permalink
Amend symfony 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
estringana committed Dec 14, 2023
1 parent dbb9ebd commit 48abd7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function simpleViewAction(Request $request)
}

/**
* @Route("/dynamic_route/{param01}/{param02?}", name="dynamic route with optionals")
* @Route("/dynamic_route/{param01}/{param02}", name="dynamic route with optionals")
*/
public function dynamicWithOptionalsAction($param01, $param02)
{
Expand Down
14 changes: 1 addition & 13 deletions tests/Integrations/Symfony/V3_3/PathParamsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PathParamsTest extends WebFrameworkTestCase
{
protected static function getAppIndexScript()
{
return __DIR__ . '/../../../Frameworks/Symfony/Version_3_3/public/index.php';
return __DIR__ . '/../../../Frameworks/Symfony/Version_3_3/web/index.php';
}

protected function connection()
Expand Down Expand Up @@ -49,18 +49,6 @@ public function testDynamicRouteWithOptionalsFilled()
$this->assertEquals('push_params', $events[0]['eventName']);
}

public function testDynamicRouteWithOptionalsNotFilled()
{
$param01 = 'first_param';
$this->call(GetSpec::create('dynamic', "/dynamic_route/$param01"));
$events = AppsecStatus::getInstance()->getEvents();
$this->assertEquals(1, count($events));
$this->assertEquals($param01, $events[0]['param01']);
$this->assertEmpty($events[0]['param02']);
$this->assertEquals('push_params', $events[0]['eventName']);
}


public function testStaticRoute()
{
$this->call(GetSpec::create('static', "/simple"));
Expand Down

0 comments on commit 48abd7a

Please sign in to comment.