Definition at line 10 of file DataTest.php.
 
◆ getTrackingPopupUrlBySalesModelDataProvider()
      
        
          | getTrackingPopupUrlBySalesModelDataProvider  | 
          ( | 
           | ) | 
           | 
        
      
 
- Returns
 - array 
 
Definition at line 135 of file DataTest.php.
  138             [\Magento\Sales\Model\Order::class,
   142                 'http://localhost/index.php/shipping/tracking/popup?hash=b3JkZXJfaWQ6NDI6YWJj',
   144             [\Magento\Sales\Model\Order\Shipment::class,
   148                 'http://localhost/index.php/shipping/tracking/popup?hash=c2hpcF9pZDo0MjphYmM%2C'   150             [\Magento\Sales\Model\Order\Shipment\Track::class,
   154                 'http://localhost/index.php/shipping/tracking/popup?hash=dHJhY2tfaWQ6NDI6YWJj'  
 
 
◆ setUp()
Definition at line 17 of file DataTest.php.
   20             \
Magento\Shipping\Helper\Data::class
 
static getObjectManager()
 
 
 
 
◆ testGetTrackingPopupUrlBySalesModel()
      
        
          | testGetTrackingPopupUrlBySalesModel  | 
          ( | 
            | 
          $modelName,  | 
        
        
           | 
           | 
            | 
          $getIdMethod,  | 
        
        
           | 
           | 
            | 
          $entityId,  | 
        
        
           | 
           | 
            | 
          $code,  | 
        
        
           | 
           | 
            | 
          $expected  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | string | $modelName |  | 
    | string | $getIdMethod |  | 
    | int | $entityId |  | 
    | string | $code |  | 
    | string | $expected | @dataProvider getTrackingPopupUrlBySalesModelDataProvider  | 
  
   
Definition at line 32 of file DataTest.php.
   36         if (\
Magento\Sales\Model\Order\Shipment::class === $modelName) {
    39         } 
elseif (\
Magento\Sales\Model\Order\Shipment\Track::class === $modelName) {
    40             $shipmentRepository = $this->getMockShipmentRepository(
$code);
    41             $constructArgs[
'shipmentRepository'] = $shipmentRepository;
    45         $model->{$getIdMethod}($entityId);
    47         if (\
Magento\Sales\Model\Order::class === $modelName) {
    50         if (\
Magento\Sales\Model\Order\Shipment\Track::class === $modelName) {
    54         $actual = $this->helper->getTrackingPopupUrlBySalesModel(
$model);
    55         $this->assertEquals($expected, $actual);
 elseif(isset( $params[ 'redirect_parent']))
 
static getObjectManager()
 
 
 
 
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Shipping/Helper/DataTest.php