From 06f23f3b3ba9e3f6ee49b2a5b4fdabd4800e544b Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 12 Apr 2021 22:23:34 +0900 Subject: [PATCH] Update unit tests for 73695ccd --- tests/unit/framework/parsers/ModuleActionParserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/framework/parsers/ModuleActionParserTest.php b/tests/unit/framework/parsers/ModuleActionParserTest.php index dcd7468e6..d4a7ee218 100644 --- a/tests/unit/framework/parsers/ModuleActionParserTest.php +++ b/tests/unit/framework/parsers/ModuleActionParserTest.php @@ -15,7 +15,7 @@ class ModuleActionParserTest extends \Codeception\TestCase\Test $this->assertEquals('view', $info->action->dispTestView->type); $this->assertEquals('guest', $info->action->dispTestView->grant); $this->assertEquals((object)['target' => 'view', 'check_var' => '', 'check_type' => ''], $info->action->dispTestView->permission); - $this->assertEquals('GET', $info->action->dispTestView->method); + $this->assertEquals('GET|POST', $info->action->dispTestView->method); $this->assertEquals('false', $info->action->dispTestView->standalone); $this->assertEquals('true', $info->action->dispTestView->check_csrf); $this->assertEquals(3, count($info->action->dispTestView->route)); @@ -41,7 +41,7 @@ class ModuleActionParserTest extends \Codeception\TestCase\Test $this->assertEquals('dispTestView', $info->route->GET['#^(?P[0-9]+)/comment/(?P[0-9]+)$#u']); $this->assertEquals('dispTestView', $info->route->GET['#^(?P[0-9]+)/tag/(?P[a-zA-Z0-9_]+)$#u']); $this->assertEquals('dispTestWrite', $info->route->GET['#^write$#u']); - $this->assertEquals(0, count($info->route->POST)); + $this->assertEquals(3, count($info->route->POST)); // Grant $this->assertEquals(['view'], array_keys(get_object_vars($info->grant)));