mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix test method names.
This commit is contained in:
@@ -119,6 +119,14 @@ abstract class TestCase extends BaseTestCase
|
||||
return $this->getRandomJournal(TransactionType::DEPOSIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
public function getRandomTransfer(): TransactionJournal
|
||||
{
|
||||
return $this->getRandomJournal(TransactionType::TRANSFER);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
@@ -128,11 +136,13 @@ abstract class TestCase extends BaseTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TransactionJournal
|
||||
*
|
||||
*/
|
||||
public function getRandomTransfer(): TransactionJournal
|
||||
public function setUp(): void
|
||||
{
|
||||
return $this->getRandomJournal(TransactionType::TRANSFER);
|
||||
parent::setUp();
|
||||
$repository = $this->mock(JournalRepositoryInterface::class);
|
||||
$repository->shouldReceive('firstNull')->andReturn(new TransactionJournal);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -168,16 +178,6 @@ abstract class TestCase extends BaseTestCase
|
||||
return Mockery::mock('overload:' . $class);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$repository = $this->mock(JournalRepositoryInterface::class);
|
||||
$repository->shouldReceive('firstNull')->andReturn(new TransactionJournal);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $type
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user