. */ declare(strict_types=1); namespace Tests\Feature\Controllers\Transaction; use DB; use FireflyIII\Models\AccountType; use FireflyIII\Models\TransactionJournal; use FireflyIII\Repositories\Account\AccountRepositoryInterface; use FireflyIII\Repositories\Budget\BudgetRepositoryInterface; use FireflyIII\Repositories\Journal\JournalRepositoryInterface; use Illuminate\Support\Collection; use Tests\TestCase; /** * Class MassControllerTest * * @package Tests\Feature\Controllers\Transaction * @SuppressWarnings(PHPMD.TooManyPublicMethods) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class MassControllerTest extends TestCase { /** * @covers \FireflyIII\Http\Controllers\Transaction\MassController::delete * @covers \FireflyIII\Http\Controllers\Transaction\MassController::__construct */ public function testDelete() { $withdrawals = TransactionJournal::where('transaction_type_id', 1)->where('user_id', $this->user()->id)->take(2)->get()->pluck('id')->toArray(); $this->be($this->user()); $response = $this->get(route('transactions.mass.delete', $withdrawals)); $response->assertStatus(200); $response->assertSee('Delete a number of transactions'); // has bread crumb $response->assertSee('