Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 May 2013 at 23:58 UTC
Updated:
29 Jul 2014 at 22:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
atchijov commentedatchijov & johnbickar working on this.
Comment #2
john bickar commentedPer atchijov, unit tests for these changes will fail until https://drupal.org/node/1998696 is resolved.
Comment #3
atchijov commentedComment #4
john bickar commentedAlso per atchijov:
Comment #6
atchijov commented#3: drupal-use_symfony_request_for_system_module-1999434-3.patch queued for re-testing.
Comment #8
atchijov commentedComment #9
dawehner+++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/OverrideServerVariablesUnitTest.phpundefined
@@ -25,10 +25,13 @@ public static function getInfo() {
+ $request = \Drupal::request();
+ $server = $request->server;
+ $script_name = $server->get('SCRIPT_NAME');
+++ b/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.phpundefined
@@ -139,8 +139,9 @@ function testDrupalRenderSorting() {
+ $server = \Drupal::request()->server;
+ $request_method = $server->get('REQUEST_METHOD');
On a pure unit test the Drupal request will not be available here. We should use Request::createFormGlobals(); instead
Comment #10
atchijov commented#3: drupal-use_symfony_request_for_system_module-1999434-3.patch queued for re-testing.
Comment #12
kim.pepperOnly converting the system.php and system.api.php as the tests can be converted post api freeze.
Comment #13
larowlanThese will always be set. I think you need !empty() now.
Can this be combined into one line?
Comment #14
kim.pepperFixes for #13.
Comment #15
larowlanComment #16
yesct commentedThis issue was RTBC and passing tests on July 1, the beginning of API freeze.
Comment #17
alexpottCommitted 09d7b81 and pushed to 8.x. Thanks!