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 CategoryIsTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\CategoryIs::triggered
*/
public function testTriggeredJournal()
public function testTriggeredJournal(): void
{
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
$category = $journal->user->categories()->first();
@@ -50,7 +50,7 @@ class CategoryIsTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\CategoryIs::triggered
*/
public function testTriggeredNotJournal()
public function testTriggeredNotJournal(): void
{
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
$category = $journal->user->categories()->first();
@@ -67,7 +67,7 @@ class CategoryIsTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\CategoryIs::triggered
*/
public function testTriggeredTransaction()
public function testTriggeredTransaction(): void
{
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
$transaction = $journal->transactions()->first();
@@ -87,7 +87,7 @@ class CategoryIsTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\CategoryIs::willMatchEverything
*/
public function testWillMatchEverythingNotNull()
public function testWillMatchEverythingNotNull(): void
{
$value = 'x';
$result = CategoryIs::willMatchEverything($value);
@@ -97,7 +97,7 @@ class CategoryIsTest extends TestCase
/**
* @covers \FireflyIII\TransactionRules\Triggers\CategoryIs::willMatchEverything
*/
public function testWillMatchEverythingNull()
public function testWillMatchEverythingNull(): void
{
$value = null;
$result = CategoryIs::willMatchEverything($value);