Skip to content

Commit

Permalink
Enable support for laravel 5.5 in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
santigarcor committed Sep 21, 2017
1 parent 307b91d commit d4c0242
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"require-dev": {
"mockery/mockery": "^0.9.2",
"phpunit/phpunit": "~4.1",
"phpunit/phpunit": ">=4.1",
"orchestra/testbench": "~3.2"
},
"autoload": {
Expand Down
6 changes: 5 additions & 1 deletion tests/LaratrustRoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ public function testAttachPermission()
$this->assertInstanceOf('Laratrust\Tests\Models\Role', $this->role->attachPermission($permC->id));
$this->assertCount(3, $this->role->permissions()->get()->toArray());

$this->setExpectedException('InvalidArgumentException');
if (method_exists($this, 'setExpectedException')) {
$this->setExpectedException('InvalidArgumentException');
} else {
$this->expectException('InvalidArgumentException');
}
$this->role->attachPermission(true);
}

Expand Down

0 comments on commit d4c0242

Please sign in to comment.