Skip to content

Commit

Permalink
nitpick on laravel 5.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jul 1, 2016
1 parent 5545d04 commit a46cea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/ActivityloggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Auth;
use Illuminate\Support\Collection;
use Spatie\Activitylog\Exceptions\CouldNotLogActivity;
use Spatie\Activitylog\Models\Activity;
use Spatie\Activitylog\Test\Models\Article;
use Spatie\Activitylog\Test\Models\User;
Expand Down Expand Up @@ -128,12 +129,13 @@ public function it_can_translate_a_given_causer_id_to_an_object()

/**
* @test
* @expectedException \Spatie\Activitylog\Exceptions\CouldNotLogActivity
*
* @requires !Travis
*/
public function it_will_throw_an_exception_if_it_cannot_translate_a_causer_id()
{
$this->setExpectedException(CouldNotLogActivity::class);

activity()->causedBy(999);
}

Expand Down
3 changes: 0 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ public function getEnvironmentSetUp($app)
]);

$app['config']->set('auth.providers.users.model', User::class);

// to support testing in Laravel 5.1
$app['config']->set('auth.model', User::class);

$app['config']->set('app.key', '6rE9Nz59bGRbeMATftriyQjrpF7DcOQm');
}
Expand Down

0 comments on commit a46cea4

Please sign in to comment.