mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	New (empty) tests for models.
This commit is contained in:
		
							
								
								
									
										54
									
								
								tests/models/AccountModelTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								tests/models/AccountModelTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,54 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Class AccountModelTest | ||||
|  */ | ||||
| class AccountModelTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      * Sets up the fixture, for example, opens a network connection. | ||||
|      * This method is called before a test is executed. | ||||
|      */ | ||||
|     public function setUp() | ||||
|     { | ||||
|         parent::setUp(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * This method is called before the first test of this test class is run. | ||||
|      * | ||||
|      * @since Method available since Release 3.4.0 | ||||
|      */ | ||||
|     public static function setUpBeforeClass() | ||||
|     { | ||||
|         parent::setUpBeforeClass(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Tears down the fixture, for example, closes a network connection. | ||||
|      * This method is called after a test is executed. | ||||
|      */ | ||||
|     public function tearDown() | ||||
|     { | ||||
|         parent::tearDown(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\Account::firstOrCreateEncrypted | ||||
|      */ | ||||
|     public function testFirstOrCreateEncrypted() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\Account::firstOrNullEncrypted | ||||
|      */ | ||||
|     public function testFirstOrNullEncrypted() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										46
									
								
								tests/models/CategoryModelTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								tests/models/CategoryModelTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Class CategoryModelTest | ||||
|  */ | ||||
| class CategoryModelTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      * Sets up the fixture, for example, opens a network connection. | ||||
|      * This method is called before a test is executed. | ||||
|      */ | ||||
|     public function setUp() | ||||
|     { | ||||
|         parent::setUp(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * This method is called before the first test of this test class is run. | ||||
|      * | ||||
|      * @since Method available since Release 3.4.0 | ||||
|      */ | ||||
|     public static function setUpBeforeClass() | ||||
|     { | ||||
|         parent::setUpBeforeClass(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Tears down the fixture, for example, closes a network connection. | ||||
|      * This method is called after a test is executed. | ||||
|      */ | ||||
|     public function tearDown() | ||||
|     { | ||||
|         parent::tearDown(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\Category::firstOrCreateEncrypted | ||||
|      */ | ||||
|     public function testFirstOrCreateEncrypted() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										46
									
								
								tests/models/TagModelTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								tests/models/TagModelTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Class TagModelTest | ||||
|  */ | ||||
| class TagModelTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      * Sets up the fixture, for example, opens a network connection. | ||||
|      * This method is called before a test is executed. | ||||
|      */ | ||||
|     public function setUp() | ||||
|     { | ||||
|         parent::setUp(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * This method is called before the first test of this test class is run. | ||||
|      * | ||||
|      * @since Method available since Release 3.4.0 | ||||
|      */ | ||||
|     public static function setUpBeforeClass() | ||||
|     { | ||||
|         parent::setUpBeforeClass(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Tears down the fixture, for example, closes a network connection. | ||||
|      * This method is called after a test is executed. | ||||
|      */ | ||||
|     public function tearDown() | ||||
|     { | ||||
|         parent::tearDown(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\Tag::firstOrCreateEncrypted | ||||
|      */ | ||||
|     public function testFirstOrCreateEncrypted() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										78
									
								
								tests/models/TransactionJournalModelTes.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								tests/models/TransactionJournalModelTes.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,78 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Class TransactionJournalModelTest | ||||
|  */ | ||||
| class TransactionJournalModelTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      * Sets up the fixture, for example, opens a network connection. | ||||
|      * This method is called before a test is executed. | ||||
|      */ | ||||
|     public function setUp() | ||||
|     { | ||||
|         parent::setUp(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * This method is called before the first test of this test class is run. | ||||
|      * | ||||
|      * @since Method available since Release 3.4.0 | ||||
|      */ | ||||
|     public static function setUpBeforeClass() | ||||
|     { | ||||
|         parent::setUpBeforeClass(); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Tears down the fixture, for example, closes a network connection. | ||||
|      * This method is called after a test is executed. | ||||
|      */ | ||||
|     public function tearDown() | ||||
|     { | ||||
|         parent::tearDown(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\TransactionJournal::getActualAmountAttribute | ||||
|      */ | ||||
|     public function testGetActualAmountAttribute() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\TransactionJournal::getAmountAttribute | ||||
|      */ | ||||
|     public function testGetAmountAttribute() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\TransactionJournal::getAssetAccountAttribute | ||||
|      */ | ||||
|     public function testGetAssetAccountAttribute() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\TransactionJournal::getCorrectedActualAmountAttribute | ||||
|      */ | ||||
|     public function testGetCorrectedActualAmountAttribute() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @covers FireflyIII\Models\TransactionJournal::getDestinationAccountAttribute | ||||
|      */ | ||||
|     public function testGetDestinationAccountAttribute() | ||||
|     { | ||||
|         $this->markTestIncomplete(); | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user