mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update meta files and language files for new release.
This commit is contained in:
@@ -22,9 +22,10 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\TransactionRules\Triggers;
|
||||
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use FireflyIII\TransactionRules\Triggers\HasAttachment;
|
||||
use Tests\TestCase;
|
||||
|
||||
use DB;
|
||||
/**
|
||||
* Class HasAttachmentTest
|
||||
*/
|
||||
@@ -52,7 +53,14 @@ class HasAttachmentTest extends TestCase
|
||||
public function testTriggeredFalse(): void
|
||||
{
|
||||
$withdrawal = $this->getRandomWithdrawal();
|
||||
$attachment = $withdrawal->user->attachments()->first();
|
||||
$withdrawal->attachments()->save($attachment);
|
||||
|
||||
DB::table('attachments')
|
||||
->where('attachable_type', TransactionJournal::class)
|
||||
->where('attachable_id', $withdrawal->id)->delete();
|
||||
|
||||
$withdrawal->attachments()->saveMany([]);
|
||||
$this->assertEquals(0, $withdrawal->attachments()->count());
|
||||
|
||||
$trigger = HasAttachment::makeFromStrings('1', false);
|
||||
|
Reference in New Issue
Block a user