Update test code.

This commit is contained in:
James Cole
2018-05-11 19:58:10 +02:00
parent 9bb4df4cc3
commit 4d6bc55723
174 changed files with 2138 additions and 940 deletions

View File

@@ -34,7 +34,7 @@ class HasAttachmentTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasAttachment::triggered
*/
public function testTriggered()
public function testTriggered(): void
{
do {
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
@@ -53,7 +53,7 @@ class HasAttachmentTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasAttachment::triggered
*/
public function testTriggeredFalse()
public function testTriggeredFalse(): void
{
do {
// this is kind of cheating but OK.
@@ -71,7 +71,7 @@ class HasAttachmentTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasAttachment::willMatchEverything
*/
public function testWillMatchEverything()
public function testWillMatchEverything(): void
{
$value = '5';
$result = HasAttachment::willMatchEverything($value);
@@ -81,7 +81,7 @@ class HasAttachmentTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasAttachment::willMatchEverything
*/
public function testWillMatchEverythingTrue()
public function testWillMatchEverythingTrue(): void
{
$value = -1;
$result = HasAttachment::willMatchEverything($value);