mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Code clean up.
This commit is contained in:
@@ -50,16 +50,15 @@ class DescriptionEndsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\TransactionRules\Triggers\DescriptionEnds::triggered
|
||||
*/
|
||||
public function testTriggeredNot()
|
||||
public function testTriggeredClose()
|
||||
{
|
||||
$journal = new TransactionJournal;
|
||||
$journal->description = 'Lorem IPSUM blabla';
|
||||
$trigger = DescriptionEnds::makeFromStrings('lorem', false);
|
||||
$journal->description = 'Something is going to happen';
|
||||
$trigger = DescriptionEnds::makeFromStrings('happe', false);
|
||||
$result = $trigger->triggered($journal);
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\TransactionRules\Triggers\DescriptionEnds::triggered
|
||||
*/
|
||||
@@ -75,11 +74,11 @@ class DescriptionEndsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\TransactionRules\Triggers\DescriptionEnds::triggered
|
||||
*/
|
||||
public function testTriggeredClose()
|
||||
public function testTriggeredLongSearch()
|
||||
{
|
||||
$journal = new TransactionJournal;
|
||||
$journal->description = 'Something is going to happen';
|
||||
$trigger = DescriptionEnds::makeFromStrings('happe', false);
|
||||
$journal->description = 'Something';
|
||||
$trigger = DescriptionEnds::makeFromStrings('Something is', false);
|
||||
$result = $trigger->triggered($journal);
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
@@ -99,11 +98,11 @@ class DescriptionEndsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\TransactionRules\Triggers\DescriptionEnds::triggered
|
||||
*/
|
||||
public function testTriggeredLongSearch()
|
||||
public function testTriggeredNot()
|
||||
{
|
||||
$journal = new TransactionJournal;
|
||||
$journal->description = 'Something';
|
||||
$trigger = DescriptionEnds::makeFromStrings('Something is', false);
|
||||
$journal->description = 'Lorem IPSUM blabla';
|
||||
$trigger = DescriptionEnds::makeFromStrings('lorem', false);
|
||||
$result = $trigger->triggered($journal);
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user