mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
make sure randomly selected journals match prerequisites.
This commit is contained in:
@@ -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());
|
||||
|
@@ -46,7 +46,6 @@ class IsDemoUserTest extends TestCase
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Middleware\IsDemoUser::handle
|
||||
*/
|
||||
|
Reference in New Issue
Block a user