'free_shipping', 'isPacketaMethod' => false, ], [ 'methodId' => 'flat_rate', 'isPacketaMethod' => false, ], [ 'methodId' => ShippingMethod::PACKETERY_METHOD_ID, 'isPacketaMethod' => true, ], [ 'methodId' => BaseShippingMethod::PACKETA_METHOD_PREFIX . 'zpointcz', 'isPacketaMethod' => true, ], [ 'methodId' => BaseShippingMethod::PACKETA_METHOD_PREFIX . 'czzpoint', 'isPacketaMethod' => true, ], [ 'methodId' => BaseShippingMethod::PACKETA_METHOD_PREFIX . '106', 'isPacketaMethod' => true, ], ]; } /** * @dataProvider shippingMethodsProvider */ public function testIsPacketaMethod( $methodId, $isPacketaMethod ): void { self::assertEquals( $isPacketaMethod, ShippingProvider::isPacketaMethod( $methodId ) ); } }