make sure randomly selected journals match prerequisites.

This commit is contained in:
James Cole
2018-03-02 17:07:32 +01:00
parent 139c2284b8
commit 36113f84be
80 changed files with 728 additions and 281 deletions

View File

@@ -1232,7 +1232,7 @@ class BinderTest extends TestCase
{
$tagRepos = $this->mock(TagRepositoryInterface::class);
$tagRepos->shouldReceive('setUser');
$tags = $this->user()->tags()->whereIn('id', [1, 2])->get(['tags.*']);
$tags = $this->user()->tags()->whereIn('id', [1, 2])->get(['tags.*']);
$tagRepos->shouldReceive('get')->once()->andReturn($tags);
Route::middleware(Binder::class)->any(
@@ -1244,7 +1244,6 @@ class BinderTest extends TestCase
$names = join(',', $tags->pluck('tag')->toArray());
$this->be($this->user());
$response = $this->get('/_test/binder/' . $names);
$this->assertEquals(Response::HTTP_OK, $response->getStatusCode());

View File

@@ -46,7 +46,6 @@ class IsDemoUserTest extends TestCase
}
/**
* @covers \FireflyIII\Http\Middleware\IsDemoUser::handle
*/