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

ultraware / roles / 52
63%
5.3: 61%

Build:
Build:
LAST BUILD BRANCH: 5.5
DEFAULT BRANCH: 5.3
Ran 13 May 2017 05:23PM UTC
Jobs 1
Files 17
Run time 1s
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
52

Pull #11

travis-ci

web-flow
Fix bug on getRoles and getPermission

  There was a bug that prevented the methods to return the correct
  collection as !$this->roles or !$this->permissions was used to check
  for null and for empty collection at the same time,
  but !$this->anyCollection returns always false, even on empty collections.

  This is easyly testable on recently attached role to a user
  Ie:
    $user = User::create([...]);
    $role = Role::firstOrCreate([...]);
    $user->attachRole($role);
    $user->getRoles(); // Wrongly returns empty collection
Pull Request #11: Fix bug on getRoles and getPermission

2 of 2 new or added lines in 1 file covered. (100.0%)

102 of 161 relevant lines covered (63.35%)

4.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/Traits/HasRoleAndPermission.php
Jobs
ID Job ID Ran Files Coverage
6 52.6 (coverage=yes) 13 May 2017 05:22PM UTC 0
63.35
Travis Job 52.6
Source Files on build 52
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #52
  • Pull Request #11
  • PR Base - 5.4 (#48)
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