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

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

Build:
Build:
LAST BUILD BRANCH: V3
DEFAULT BRANCH: master
Ran 30 Jun 2017 10:56PM UTC
Jobs 4
Files 129
Run time 5273min
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
922

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

57 of 57 new or added lines in 4 files covered. (100.0%)

1169 of 2527 relevant lines covered (46.26%)

5.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/Subscription/SubscriptionMemento.php
3
100.0
lib/Subscription/SubscriptionBuilder.php
7
100.0
lib/Subscription/SubscriptionHandler.php
10
100.0
lib/Subscription/Request/SubscriptionUpdate.php

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
lib/Subscription/SubscriptionBuilder.php
1
100.0
lib/Subscription/SubscriptionHandler.php
Jobs
ID Job ID Ran Files Coverage
1 922.1 03 Jul 2017 01:30PM UTC 0
75.31
Travis Job 922.1
2 922.2 30 Jun 2017 10:56PM UTC 0
75.44
Travis Job 922.2
3 922.3 04 Jul 2017 02:50PM UTC 0
75.44
Travis Job 922.3
4 922.4 04 Jul 2017 02:44PM UTC 0
0.0
Travis Job 922.4
Source Files on build 922
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #922
  • Pull Request #196
  • PR Base - V3 (#894)
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