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

WordPoints / wordpoints / 334 / 22
69%
master: 53%

Build:
Build:
LAST BUILD BRANCH: 1.10.4
DEFAULT BRANCH: master
Ran 09 Mar 2015 08:04PM UTC
Files 50
Run time 8s
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

09 Mar 2015 07:44PM UTC coverage: 69.293%. First build
TRAVISCI_RUN=phpunit WP_VERSION=latest

push

travis-ci

JDGrimes
Promote users to the correct rank

This simplifies the rank transitioning code, and fixes a bug where
every other rank would be skipped when a user was being promoted. This
would cause a problem when you had ranks like this:

0 points (base)
100 points
1000 points

If a points-less user was awarded, say 150 points, they would be
transitioned to the 1000 points rank. Here is how it would happen. The
maybe-increase-rank function would first check if the user could
transition to the 100 points rank. It would get the affirmative. That
is the correct behavior. Then it would proceed to check if the user
could transition to the next rank. However, it would actually check one
rank above that. Of course, in a case like this, there is no fourth
rank, so the third rank for 1000 points would be returned.

Adds unit tests.

Fixes #300

1715 of 2475 relevant lines covered (69.29%)

26.33 hits per line

Source Files on job 334.22 (TRAVISCI_RUN=phpunit WP_VERSION=latest)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 334
  • Travis Job 334.22
  • c0a21e0a on github
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