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

@@ -35,7 +35,7 @@ class NotesEndTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::triggered
*/
public function testTriggered()
public function testTriggered(): void
{
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
$journal->notes()->delete();
@@ -51,7 +51,7 @@ class NotesEndTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::triggered
*/
public function testTriggeredLonger()
public function testTriggeredLonger(): void
{
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
$journal->notes()->delete();
@@ -67,7 +67,7 @@ class NotesEndTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::triggered
*/
public function testTriggeredNoMatch()
public function testTriggeredNoMatch(): void
{
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
$journal->notes()->delete();
@@ -83,7 +83,7 @@ class NotesEndTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::willMatchEverything
*/
public function testWillMatchEverythingEmpty()
public function testWillMatchEverythingEmpty(): void
{
$value = '';
$result = NotesEnd::willMatchEverything($value);
@@ -93,7 +93,7 @@ class NotesEndTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::willMatchEverything
*/
public function testWillMatchEverythingNotNull()
public function testWillMatchEverythingNotNull(): void
{
$value = 'x';
$result = NotesEnd::willMatchEverything($value);
@@ -103,7 +103,7 @@ class NotesEndTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::willMatchEverything
*/
public function testWillMatchEverythingNull()
public function testWillMatchEverythingNull(): void
{
$value = null;
$result = NotesEnd::willMatchEverything($value);