Disable all kinds of tests until upgrades are complete.

This commit is contained in:
James Cole
2019-04-09 15:32:48 +02:00
parent 63070bffc3
commit 97726c3822
114 changed files with 1581 additions and 1205 deletions

View File

@@ -55,12 +55,12 @@ class BoxControllerTest extends TestCase
*/
public function testAvailable(): void
{
$return = [
$return = [
0 => [
'spent' => '-1200', // more than budgeted.
],
];
$repository = $this->mock(BudgetRepositoryInterface::class);
$repository = $this->mock(BudgetRepositoryInterface::class);
$currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
$repository->shouldReceive('getAvailableBudget')->andReturn('1000');
@@ -78,12 +78,12 @@ class BoxControllerTest extends TestCase
*/
public function testAvailableDays(): void
{
$return = [
$return = [
0 => [
'spent' => '-800', // more than budgeted.
],
];
$repository = $this->mock(BudgetRepositoryInterface::class);
$repository = $this->mock(BudgetRepositoryInterface::class);
$currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
$repository->shouldReceive('getAvailableBudget')->andReturn('1000');
@@ -101,8 +101,11 @@ class BoxControllerTest extends TestCase
*/
public function testBalance(): void
{
$accountRepos = $this->mock(AccountRepositoryInterface::class);
$collector = $this->mock(TransactionCollectorInterface::class);
$this->markTestIncomplete('Needs to be rewritten for v4.8.0');
return;
$accountRepos = $this->mock(AccountRepositoryInterface::class);
$collector = $this->mock(TransactionCollectorInterface::class);
$currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
@@ -124,12 +127,15 @@ class BoxControllerTest extends TestCase
*/
public function testBalanceTransactions(): void
{
$this->markTestIncomplete('Needs to be rewritten for v4.8.0');
return;
$transaction = new Transaction;
$transaction->transaction_currency_id = 1;
$transaction->transaction_amount = '5';
$accountRepos = $this->mock(AccountRepositoryInterface::class);
$collector = $this->mock(TransactionCollectorInterface::class);
$accountRepos = $this->mock(AccountRepositoryInterface::class);
$collector = $this->mock(TransactionCollectorInterface::class);
$currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
$currencyRepos->shouldReceive('findNull')->withArgs([1])->andReturn(TransactionCurrency::find(1))->atLeast()->once();
@@ -152,7 +158,7 @@ class BoxControllerTest extends TestCase
*/
public function testBills(): void
{
$billRepos = $this->mock(BillRepositoryInterface::class);
$billRepos = $this->mock(BillRepositoryInterface::class);
$currencyRepos = $this->mock(CurrencyRepositoryInterface::class);
$billRepos->shouldReceive('getBillsPaidInRange')->andReturn('0');