Add a stub for RequestStack service

Created on 13 February 2023, almost 2 years ago

Problem/Motivation

Will be good to add a stub for the RequestStack service.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @murz
  • @murz opened merge request.
  • 🇦🇲Armenia murz Yerevan, Armenia
  • Status changed to Fixed almost 2 years ago
    • Murz committed 4ef9c988 on 1.0.x
      Issue #3341297 by Murz: Add stub for RequestStack service
      
  • Status changed to Fixed almost 2 years ago
  • 🇦🇲Armenia murz Yerevan, Armenia

    I've implemented this without a stub, by just initiating an original service.
    Usage example:

        TestHelpers::service('request_stack')->push(new Request(['foo' => 'bar']));
        $currentRequest = TestHelpers::service('request_stack')->getCurrentRequest();
    
Production build 0.71.5 2024