Fix test method names.

This commit is contained in:
James Cole
2018-09-02 20:27:26 +02:00
parent de754ca4e0
commit eaf2667abb
90 changed files with 675 additions and 676 deletions

View File

@@ -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
*