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

pagarme / pagarme-php / 908
46%
master: 73%

Build:
Build:
LAST BUILD BRANCH: V3
DEFAULT BRANCH: master
Ran 26 Jun 2017 09:41PM UTC
Jobs 3
Files 129
Run time 32s
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

pending completion
908

push

travis-ci

ThamaraHessel
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.

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.

1163 of 2515 relevant lines covered (46.24%)

3.9 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
5
100.0
lib/Subscription/Request/SubscriptionUpdate.php
Jobs
ID Job ID Ran Files Coverage
1 908.1 26 Jun 2017 09:41PM UTC 0
75.26
Travis Job 908.1
2 908.2 26 Jun 2017 09:41PM UTC 0
75.39
Travis Job 908.2
4 908.4 26 Jun 2017 09:41PM UTC 0
0.0
Travis Job 908.4
Source Files on build 908
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #908
  • d39e4516 on github
  • Prev Build on updateSubscroptionRoute (#903)
  • Next Build on updateSubscroptionRoute (#910)
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