• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pagarme / pagarme-php / 922 / 1
77%
master: 73%

Build:
Build:
LAST BUILD BRANCH: V3
DEFAULT BRANCH: master
Ran 03 Jul 2017 01:30PM UTC
Files 129
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2017 10:48PM UTC coverage: 75.308% (+75.3%) from 0.0%
922.1

Pull #196

travis-ci

web-flow
Changes the mandatory parameters to update subscription route

It's not mandatory to send all parameters to the update. It's possible to change,
for instance, only the plan_id without to alter the card or the payment method.
To implement it, we use the "memento pattern" instead to make a new request of
the early data subscription.

Changes the "plan_id" parameter name. Use "plan_id" instead of "plan" because the body
of request with "plan" is not accepted by API in the route PUT /subscriptions/:id.

Sends the payment method "credit_card" when "card_id" is inform, because the API
require the payment method together to this update.

Create methods to load the card, plan and payment method with specific validations
to be attached in the body of the request.

Changes unit tests and creates behaviour tests.
Pull Request #196: Changes the mandatory parameters to update subscription route

1162 of 1543 relevant lines covered (75.31%)

3.18 hits per line

Source Files on job 922.1
  • Tree
  • List 0
  • Changed 125
  • Source Changed 3
  • Coverage Changed 125
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 922
  • Travis Job 922.1
  • 480e512b on github
  • Prev Job for on V3 (#894.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc