Update meta files and language files for new release.

This commit is contained in:
James Cole
2018-09-04 19:07:02 +02:00
parent d43fa3790d
commit 226b3cfdd8
16 changed files with 582 additions and 160 deletions

View File

@@ -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);