Skip to content

Commit

Permalink
Merge pull request #1897 from Shopify/zoey/fix-test
Browse files Browse the repository at this point in the history
Add test stub for token exchange auth
  • Loading branch information
paulomarg authored Aug 22, 2024
2 parents a312ce9 + 8f708b4 commit 8221012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Unreleased
----------
* Add the `unified_admin_domain` configuration option for the unified admin domain.
- Add new generators for webhook subscriptions defined in the `shopify.app.toml` file [1882](https://github.com/Shopify/shopify_app/pull/1882)
- Fix test stubbing for Token Exchange auth [1897](https://github.com/Shopify/shopify_app/pull/1897)

22.3.1 (July 26, 2024)
----------
Expand Down
1 change: 1 addition & 0 deletions lib/shopify_app/test_helpers/shopify_session_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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::Utils::SessionUtils.stubs(:session_id_from_shopify_id_token).returns(session.id)
ShopifyAPI::Context.activate_session(session)
end
end
Expand Down

0 comments on commit 8221012

Please sign in to comment.