mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-23 03:31:25 +00:00
Fix actions and associated tests.
This commit is contained in:
@@ -33,16 +33,6 @@ use Tests\TestCase;
|
||||
*/
|
||||
class SetNotesTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Set up test
|
||||
*/
|
||||
public function setUp(): void
|
||||
{
|
||||
self::markTestIncomplete('Incomplete for refactor.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\TransactionRules\Actions\SetNotes
|
||||
*/
|
||||
@@ -61,7 +51,7 @@ class SetNotesTest extends TestCase
|
||||
|
||||
// fire the action:
|
||||
$ruleAction = new RuleAction;
|
||||
$ruleAction->action_value = 'These are new notes ' . $this->randomInt();
|
||||
$ruleAction->action_value = sprintf('These are new notes #%d', $this->randomInt());
|
||||
$action = new SetNotes($ruleAction);
|
||||
$result = $action->act($journal);
|
||||
$this->assertTrue($result);
|
||||
@@ -69,6 +59,7 @@ class SetNotesTest extends TestCase
|
||||
// assert result
|
||||
$this->assertEquals(1, $journal->notes()->count());
|
||||
$this->assertEquals($note->id, $journal->notes()->first()->id);
|
||||
$journal->notes()->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user