Sha256: e4e0db5232e52d37559d0046157f44403fb86e67f59805185e73081c6abe61ab
Contents?: true
Size: 514 Bytes
Versions: 16
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true module ShopifyApp module TestHelpers module ShopifySessionHelper def setup_shopify_session(session_id:, shop_domain:) ShopifyAPI::Auth::Session.new(id: session_id, shop: shop_domain).tap do |session| ShopifyApp::SessionRepository.stubs(:load_session).returns(session) ShopifyAPI::Utils::SessionUtils.stubs(:current_session_id).returns(session.id) ShopifyAPI::Context.activate_session(session) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems