Skip to content

Fix YunxinGateway test URLs to match updated endpoint#380

Merged
overtrue merged 2 commits into
masterfrom
copilot/fix-test-case-issues
Nov 28, 2025
Merged

Fix YunxinGateway test URLs to match updated endpoint#380
overtrue merged 2 commits into
masterfrom
copilot/fix-test-case-issues

Conversation

Copilot AI commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

PR #379 updated YunxinGateway to use https://sms.yunxinapi.com but tests still expected the old https://api.netease.im endpoint, causing CI failures.

Changes

  • Updated mock expectations in YunxinGatewayTest.php to use new endpoint URL:
    • test_send_with_send_code
    • test_send_with_verify_code
    • test_send_with_template_msg
    • test_build_endpoint assertions
// Before
->with('https://api.netease.im/sms/sendcode.action', ...)

// After
->with('https://sms.yunxinapi.com/sms/sendcode.action', ...)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/JetBrains/phpstorm-attributes/zipball/64de815a4509c29e00d5e3474087fd24c171afc2
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/giggsey/Locale/zipball/1cd8b3ad2d43e04f4c2c6a240495af44780f809b
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/EYIhuR /usr/bin/composer install --ignore-platform-reqs (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/85401d194a87bc9de1d962252569879e575bc34f
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/hamcrest/hamcrest-php/zipball/f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/laravel/pint/zipball/69dcca060ecb15e4b564af63d1f642c81a241d6f
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/EYIhuR /usr/bin/composer install --ignore-platform-reqs (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/EYIhuR /usr/bin/composer install --ignore-platform-reqs (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9ecfec57835a5581bc888ea7e13b51eb55ab9dd3
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/EYIhuR /usr/bin/composer install --ignore-platform-reqs (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)
  • https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/EYIhuR /usr/bin/composer install --ignore-platform-reqs (http block)
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/BBXeWi /usr/bin/composer install --ignore-platform-reqs --prefer-dist -n (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

https://github.com/overtrue/easy-sms/actions/runs/19750036039/job/56591306998 修复测试用例


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: overtrue <1472352+overtrue@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues in test cases Fix YunxinGateway test URLs to match updated endpoint Nov 28, 2025
Copilot AI requested a review from overtrue November 28, 2025 02:27
@overtrue
overtrue marked this pull request as ready for review November 28, 2025 03:13
@overtrue
overtrue merged commit d16c16e into master Nov 28, 2025
5 checks passed
@overtrue
overtrue deleted the copilot/fix-test-case-issues branch November 28, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants