mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-03 20:55:05 +00:00 
			
		
		
		
	Expand tests.
This commit is contained in:
		@@ -45,6 +45,7 @@ class CurrencyControllerTest extends TestCase
 | 
			
		||||
    public function testCannotCreate()
 | 
			
		||||
    {
 | 
			
		||||
        // mock stuff
 | 
			
		||||
        $currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
 | 
			
		||||
        $userRepos    = $this->mock(UserRepositoryInterface::class);
 | 
			
		||||
        $journalRepos = $this->mock(JournalRepositoryInterface::class);
 | 
			
		||||
 | 
			
		||||
@@ -104,6 +105,7 @@ class CurrencyControllerTest extends TestCase
 | 
			
		||||
    public function testCreate()
 | 
			
		||||
    {
 | 
			
		||||
        // mock stuff
 | 
			
		||||
        $currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
 | 
			
		||||
        $userRepos    = $this->mock(UserRepositoryInterface::class);
 | 
			
		||||
        $journalRepos = $this->mock(JournalRepositoryInterface::class);
 | 
			
		||||
 | 
			
		||||
@@ -123,6 +125,8 @@ class CurrencyControllerTest extends TestCase
 | 
			
		||||
    public function testDefaultCurrency()
 | 
			
		||||
    {
 | 
			
		||||
        // mock stuff
 | 
			
		||||
        $currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
 | 
			
		||||
        $userRepos = $this->mock(UserRepositoryInterface::class);
 | 
			
		||||
        $journalRepos = $this->mock(JournalRepositoryInterface::class);
 | 
			
		||||
 | 
			
		||||
        $journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
 | 
			
		||||
@@ -182,6 +186,7 @@ class CurrencyControllerTest extends TestCase
 | 
			
		||||
    public function testEdit()
 | 
			
		||||
    {
 | 
			
		||||
        // mock stuff
 | 
			
		||||
        $currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
 | 
			
		||||
        $userRepos    = $this->mock(UserRepositoryInterface::class);
 | 
			
		||||
        $journalRepos = $this->mock(JournalRepositoryInterface::class);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user