Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jul 9, 2019
1 parent 9c2c591 commit ffd4a81
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Components/Collectors/GeneralCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function collect(Enlight_Controller_Action $controller, Profile $profile)
'moduleName' => $controller->Request()->getModuleName(),
'controllerName' => $controller->Request()->getControllerName(),
'actionName' => $controller->Request()->getActionName(),
'httpMethod' => $controller->Request()->getMethod(),
'httpMethod' => $controller->Request()->getRealMethod(),
'params' => $controller->Request()->getParams(),
'get' => $controller->Request()->getQuery(),
'post' => $controller->Request()->getPost(),
Expand Down
47 changes: 27 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{
"name": "frosh/shopware-profiler",
"keywords": ["shopware", "profiling", "plugin"],
"description": "Profiling for Shopware",
"license": "MIT",
"type": "shopware-plugin",
"extra": {
"installer-name": "FroshProfiler"
},
"require": {
"php": ">=7.1",
"jdorn/sql-formatter": "^1.2.17",
"composer/installers": "~1.0",
"symfony/stopwatch": "^4.1",
"psr/log": "^1.0",
"symfony/var-dumper": "^4.1"
},
"scripts": {
"test": "phpunit -c tests/ --colors=always",
"test-unit": "phpunit -c tests/phpunit_unit.xml --colors=always"
}
"name": "frosh/shopware-profiler",
"keywords": [
"shopware",
"profiling",
"plugin"
],
"description": "Profiling for Shopware",
"license": "MIT",
"type": "shopware-plugin",
"extra": {
"installer-name": "FroshProfiler"
},
"require": {
"php": ">=7.2",
"jdorn/sql-formatter": "^1.2.17",
"composer/installers": "~1.0",
"symfony/stopwatch": "^4.1",
"psr/log": "^1.0",
"symfony/var-dumper": "^4.1"
},
"require-dev": {
"phpunit/phpunit": "~6.0"
},
"scripts": {
"test": "phpunit -c tests/ --colors=always",
"test-unit": "phpunit -c tests/phpunit_unit.xml --colors=always"
}
}
3 changes: 2 additions & 1 deletion tests/Functional/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

define('TESTS_RUNNING', true);
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_REQUEST_METHOD'] = 'GET';

$searchDirectory = dirname(dirname(__DIR__));
while (true) {
Expand All @@ -37,4 +38,4 @@
require $autoloadFile;
break;
}
}
}

0 comments on commit ffd4a81

Please sign in to comment.