diff --git a/Helper/Php/findMissingInvalidApiControllerTest.php b/Helper/Php/findMissingInvalidApiControllerTest.php index 428276f..a6b55fb 100644 --- a/Helper/Php/findMissingInvalidApiControllerTest.php +++ b/Helper/Php/findMissingInvalidApiControllerTest.php @@ -25,15 +25,15 @@ function createFunction($name) { $invalid = <<header->account = 1; - \$this->module->{$name}(\$request, \$response); - self::assertEquals(RequestStatusCode::R_400, \$response->header->status); - } + \$request->header->account = 1; + \$this->module->{$name}(\$request, \$response); + self::assertEquals(RequestStatusCode::R_400, \$response->header->status); + } HEREDOC; @@ -136,7 +136,7 @@ foreach ($modules as $module) { echo $function . "\n"; $newContent = \createFunction($function); $newContent = \rtrim($testFile, " }\n") . "\n }\n" . $newContent . "}\n"; - //\file_put_contents($path, $newContent); + \file_put_contents($path, $newContent); $open[$function] = 1; } } @@ -152,7 +152,7 @@ foreach ($modules as $module) { echo $function . "\n"; $newContent = \createFunction($function); $newContent = \rtrim($testFile, " }\n") . "\n }\n" . $newContent . "}\n"; - //\file_put_contents($path, $newContent); + \file_put_contents($path, $newContent); $open[$function] = 1; } }