Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
New tests
James Colefb4df3484c4d
diff --git a/tests/Unit/TransactionRules/Actions/RemoveAllTagsTest.php b/tests/Unit/TransactionRules/Actions/RemoveAllTagsTest.phpindex 2e74697ba7..7f754deb47 100644--- a/tests/Unit/TransactionRules/Actions/RemoveAllTagsTest.php+++ b/tests/Unit/TransactionRules/Actions/RemoveAllTagsTest.php@@ -38,7 +38,7 @@ class RemoveAllTagsTest extends TestCase$journal->tags()->save($tag);$journal->save();}- $this->assertEquals($tags->count(), $journal->tags()->count());+ $this->assertGreaterThan(0, $journal->tags()->count());// fire the action:$ruleAction = new RuleAction;diff --git a/tests/Unit/TransactionRules/Actions/SetCategoryTest.php b/tests/Unit/TransactionRules/Actions/SetCategoryTest.phpindex 09fef3f2f4..eed0a0e65a 100644--- a/tests/Unit/TransactionRules/Actions/SetCategoryTest.php+++ b/tests/Unit/TransactionRules/Actions/SetCategoryTest.php@@ -14,7 +14,7 @@ namespace Tests\Unit\TransactionRules\Actions;use FireflyIII\Models\RuleAction;use FireflyIII\Models\TransactionJournal;-use FireflyIII\TransactionRules\Actions\SetBudget;+use FireflyIII\TransactionRules\Actions\SetCategory;use Tests\TestCase;/**@@ -25,8 +25,8 @@ use Tests\TestCase;class SetCategoryTest extends TestCase{/**- * @covers \FireflyIII\TransactionRules\Actions\SetBudget::__construct()- * @covers \FireflyIII\TransactionRules\Actions\SetBudget::act()+ * @covers \FireflyIII\TransactionRules\Actions\SetCategory::__construct()+ * @covers \FireflyIII\TransactionRules\Actions\SetCategory::act()*/public function testAct(){@@ -39,7 +39,7 @@ class SetCategoryTest extends TestCase// fire the action:$ruleAction = new RuleAction;$ruleAction->action_value = $category->name;- $action = new SetBudget($ruleAction);+ $action = new SetCategory($ruleAction);$result = $action->act($journal);$this->assertTrue($result);$this->assertEquals(1, $journal->categories()->count());