Code cleanup.

This commit is contained in:
James Cole
2017-11-22 21:12:27 +01:00
parent 4e6b782204
commit 781ca052d8
142 changed files with 213 additions and 859 deletions

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\AmountExactly;
use Tests\TestCase;
/**
* Class AmountExactlyTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class AmountExactlyTest extends TestCase
{
@@ -78,6 +74,4 @@ class AmountExactlyTest extends TestCase
$result = AmountExactly::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\AmountLess;
use Tests\TestCase;
/**
* Class AmountLessTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class AmountLessTest extends TestCase
{
@@ -90,6 +86,4 @@ class AmountLessTest extends TestCase
$result = AmountLess::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\AmountMore;
use Tests\TestCase;
/**
* Class AmountMoreTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class AmountMoreTest extends TestCase
{
@@ -100,6 +96,4 @@ class AmountMoreTest extends TestCase
$result = AmountMore::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,24 +18,19 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\BudgetIs;
use Tests\TestCase;
/**
* Class BudgetIsTest
*
* @package Unit\TransactionRules\Triggers
*/
class BudgetIsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\BudgetIs::triggered
*/
@@ -64,7 +59,6 @@ class BudgetIsTest extends TestCase
$journal->budgets()->save($budget);
$this->assertEquals(1, $journal->budgets()->count());
$trigger = BudgetIs::makeFromStrings($otherBudget->name, false);
$result = $trigger->triggered($journal);
$this->assertFalse($result);
@@ -84,7 +78,6 @@ class BudgetIsTest extends TestCase
$this->assertEquals(0, $journal->budgets()->count());
$this->assertEquals(1, $transaction->budgets()->count());
$trigger = BudgetIs::makeFromStrings($budget->name, false);
$result = $trigger->triggered($journal);
$this->assertTrue($result);

View File

@@ -18,24 +18,19 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\CategoryIs;
use Tests\TestCase;
/**
* Class CategoryIsTest
*
* @package Unit\TransactionRules\Triggers
*/
class CategoryIsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\CategoryIs::triggered
*/
@@ -64,7 +59,6 @@ class CategoryIsTest extends TestCase
$journal->categories()->save($category);
$this->assertEquals(1, $journal->categories()->count());
$trigger = CategoryIs::makeFromStrings($otherCategory->name, false);
$result = $trigger->triggered($journal);
$this->assertFalse($result);
@@ -84,7 +78,6 @@ class CategoryIsTest extends TestCase
$this->assertEquals(0, $journal->categories()->count());
$this->assertEquals(1, $transaction->categories()->count());
$trigger = CategoryIs::makeFromStrings($category->name, false);
$result = $trigger->triggered($journal);
$this->assertTrue($result);

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\DescriptionContains;
use Tests\TestCase;
/**
* Class DescriptionContains
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class DescriptionContainsTest extends TestCase
{

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\DescriptionEnds;
use Tests\TestCase;
/**
* Class DescriptionEnds
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class DescriptionEndsTest extends TestCase
{

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\DescriptionIs;
use Tests\TestCase;
/**
* Class DescriptionIs
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class DescriptionIsTest extends TestCase
{

View File

@@ -18,20 +18,16 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\DescriptionStarts;
use Tests\TestCase;
/**
* Class DescriptionStarts
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class DescriptionStartsTest extends TestCase
{

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class FromAccountContainsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class FromAccountContainsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\FromAccountContains::triggered
*/
@@ -90,6 +86,4 @@ class FromAccountContainsTest extends TestCase
$result = FromAccountContains::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class FromAccountEndsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class FromAccountEndsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\FromAccountEnds::triggered
*/
@@ -104,6 +100,4 @@ class FromAccountEndsTest extends TestCase
$result = FromAccountEnds::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class FromAccountIsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class FromAccountIsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\FromAccountIs::triggered
*/
@@ -49,7 +45,6 @@ class FromAccountIsTest extends TestCase
$this->assertTrue($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\FromAccountIs::triggered
*/
@@ -91,5 +86,4 @@ class FromAccountIsTest extends TestCase
$result = FromAccountIs::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class FromAccountStartsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class FromAccountStartsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\FromAccountStarts::triggered
*/
@@ -104,6 +100,4 @@ class FromAccountStartsTest extends TestCase
$result = FromAccountStarts::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,8 +28,6 @@ use Tests\TestCase;
/**
* Class HasAnyBudgetTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class HasAnyBudgetTest extends TestCase
{
@@ -76,7 +73,7 @@ class HasAnyBudgetTest extends TestCase
// append to transaction
foreach ($journal->transactions()->get() as $index => $transaction) {
$transaction->budgets()->detach();
if ($index === 0) {
if (0 === $index) {
$transaction->budgets()->save($budget);
}
}
@@ -95,5 +92,4 @@ class HasAnyBudgetTest extends TestCase
$result = HasAnyBudget::willMatchEverything($value);
$this->assertFalse($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,8 +28,6 @@ use Tests\TestCase;
/**
* Class HasAnyCategoryTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class HasAnyCategoryTest extends TestCase
{
@@ -76,7 +73,7 @@ class HasAnyCategoryTest extends TestCase
// append to transaction
foreach ($journal->transactions()->get() as $index => $transaction) {
$transaction->categories()->detach();
if ($index === 0) {
if (0 === $index) {
$transaction->categories()->save($category);
}
}
@@ -95,5 +92,4 @@ class HasAnyCategoryTest extends TestCase
$result = HasAnyCategory::willMatchEverything($value);
$this->assertFalse($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,8 +28,6 @@ use Tests\TestCase;
/**
* Class HasAnyTagTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class HasAnyTagTest extends TestCase
{
@@ -72,5 +69,4 @@ class HasAnyTagTest extends TestCase
$result = HasAnyTag::willMatchEverything($value);
$this->assertFalse($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,8 +28,6 @@ use Tests\TestCase;
/**
* Class HasAttachmentTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class HasAttachmentTest extends TestCase
{
@@ -81,5 +78,4 @@ class HasAttachmentTest extends TestCase
$result = HasAttachment::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,24 +18,19 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\HasNoBudget;
use Tests\TestCase;
/**
* Class HasNoBudgetTest
*
* @package Unit\TransactionRules\Triggers
*/
class HasNoBudgetTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasNoBudget::triggered
*/
@@ -61,7 +56,6 @@ class HasNoBudgetTest extends TestCase
$journal->budgets()->detach();
$this->assertEquals(0, $journal->budgets()->count());
$trigger = HasNoBudget::makeFromStrings('', false);
$result = $trigger->triggered($journal);
$this->assertTrue($result);
@@ -81,7 +75,6 @@ class HasNoBudgetTest extends TestCase
$this->assertEquals(0, $journal->budgets()->count());
$this->assertEquals(1, $transaction->budgets()->count());
$trigger = HasNoBudget::makeFromStrings('', false);
$result = $trigger->triggered($journal);
$this->assertFalse($result);

View File

@@ -18,24 +18,19 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\HasNoCategory;
use Tests\TestCase;
/**
* Class HasNoCategoryTest
*
* @package Unit\TransactionRules\Triggers
*/
class HasNoCategoryTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasNoCategory::triggered
*/
@@ -61,7 +56,6 @@ class HasNoCategoryTest extends TestCase
$journal->categories()->detach();
$this->assertEquals(0, $journal->categories()->count());
$trigger = HasNoCategory::makeFromStrings('', false);
$result = $trigger->triggered($journal);
$this->assertTrue($result);
@@ -81,7 +75,6 @@ class HasNoCategoryTest extends TestCase
$this->assertEquals(0, $journal->categories()->count());
$this->assertEquals(1, $transaction->categories()->count());
$trigger = HasNoCategory::makeFromStrings('', false);
$result = $trigger->triggered($journal);
$this->assertFalse($result);

View File

@@ -18,24 +18,19 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\HasNoTag;
use Tests\TestCase;
/**
* Class HasNoTagTest
*
* @package Unit\TransactionRules\Triggers
*/
class HasNoTagTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\HasNoTag::triggered
*/
@@ -45,7 +40,6 @@ class HasNoTagTest extends TestCase
$journal->tags()->detach();
$this->assertEquals(0, $journal->tags()->count());
$trigger = HasNoTag::makeFromStrings('', false);
$result = $trigger->triggered($journal);
$this->assertTrue($result);

View File

@@ -18,12 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\Note;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\NotesAny;
@@ -31,12 +29,9 @@ use Tests\TestCase;
/**
* Class NotesAnyTest
*
* @package Unit\TransactionRules\Triggers
*/
class NotesAnyTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesAny::triggered
*/

View File

@@ -18,12 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\Note;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\NotesAre;
@@ -31,12 +29,9 @@ use Tests\TestCase;
/**
* Class NotesAreTest
*
* @package Unit\TransactionRules\Triggers
*/
class NotesAreTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesAre::triggered
*/
@@ -97,7 +92,6 @@ class NotesAreTest extends TestCase
$this->assertFalse($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesAre::willMatchEverything
*/

View File

@@ -18,12 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\Note;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\NotesContain;
@@ -31,12 +29,9 @@ use Tests\TestCase;
/**
* Class NotesContainTest
*
* @package Unit\TransactionRules\Triggers
*/
class NotesContainTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesContain::triggered
*/
@@ -123,7 +118,6 @@ class NotesContainTest extends TestCase
$this->assertTrue($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesContain::willMatchEverything
*/

View File

@@ -18,12 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\Note;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\NotesEmpty;
@@ -31,12 +29,9 @@ use Tests\TestCase;
/**
* Class NotesEmptyTest
*
* @package Unit\TransactionRules\Triggers
*/
class NotesEmptyTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEmpty::triggered
*/
@@ -90,5 +85,4 @@ class NotesEmptyTest extends TestCase
$result = NotesEmpty::willMatchEverything($value);
$this->assertFalse($result);
}
}

View File

@@ -18,12 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\Note;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\NotesEnd;
@@ -31,12 +29,9 @@ use Tests\TestCase;
/**
* Class NotesEndTest
*
* @package Unit\TransactionRules\Triggers
*/
class NotesEndTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::triggered
*/
@@ -95,7 +90,6 @@ class NotesEndTest extends TestCase
$this->assertTrue($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesEnd::willMatchEverything
*/

View File

@@ -18,12 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\Note;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\NotesStart;
@@ -31,12 +29,9 @@ use Tests\TestCase;
/**
* Class NotesStartTest
*
* @package Unit\TransactionRules\Triggers
*/
class NotesStartTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesStart::triggered
*/
@@ -95,7 +90,6 @@ class NotesStartTest extends TestCase
$this->assertTrue($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\NotesStart::willMatchEverything
*/

View File

@@ -18,24 +18,19 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\TransactionRules\Triggers\TagIs;
use Tests\TestCase;
/**
* Class TagIsTest
*
* @package Unit\TransactionRules\Triggers
*/
class TagIsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\TagIs::triggered
*/
@@ -61,7 +56,7 @@ class TagIsTest extends TestCase
$search = '';
foreach ($tags as $index => $tag) {
$journal->tags()->save($tag);
if ($index === 1) {
if (1 === $index) {
$search = $tag->tag;
}
}
@@ -82,7 +77,6 @@ class TagIsTest extends TestCase
$this->assertFalse($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\TagIs::willMatchEverything
*/

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class ToAccountContainsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class ToAccountContainsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\ToAccountContains::triggered
*/
@@ -88,6 +84,4 @@ class ToAccountContainsTest extends TestCase
$result = ToAccountContains::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class ToAccountEndsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class ToAccountEndsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\ToAccountEnds::triggered
*/
@@ -104,6 +100,4 @@ class ToAccountEndsTest extends TestCase
$result = ToAccountEnds::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class ToAccountIsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class ToAccountIsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\ToAccountIs::triggered
*/
@@ -49,7 +45,6 @@ class ToAccountIsTest extends TestCase
$this->assertTrue($result);
}
/**
* @covers \FireflyIII\TransactionRules\Triggers\ToAccountIs::triggered
*/
@@ -91,6 +86,4 @@ class ToAccountIsTest extends TestCase
$result = ToAccountIs::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,12 +28,9 @@ use Tests\TestCase;
/**
* Class ToAccountStartsTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class ToAccountStartsTest extends TestCase
{
/**
* @covers \FireflyIII\TransactionRules\Triggers\ToAccountStarts::triggered
*/
@@ -104,6 +100,4 @@ class ToAccountStartsTest extends TestCase
$result = ToAccountStarts::willMatchEverything($value);
$this->assertTrue($result);
}
}

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,8 +28,6 @@ use Tests\TestCase;
/**
* Class TransactionTypeTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class TransactionTypeTest extends TestCase
{
@@ -76,6 +73,4 @@ class TransactionTypeTest extends TestCase
$result = TransactionType::willMatchEverything($value);
$this->assertTrue($result);
}
}