Update various tests and the composer lock file.

This commit is contained in:
James Cole
2016-12-18 10:37:59 +01:00
parent 3d8adfa7e4
commit 7716ff4e8c
16 changed files with 161 additions and 233 deletions

View File

@@ -28,165 +28,131 @@ class JsonControllerTest extends TestCase
/**
* @covers \FireflyIII\Http\Controllers\JsonController::action
* Implement testAction().
*/
public function testAction()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.action'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::boxBillsPaid
* Implement testBoxBillsPaid().
*/
public function testBoxBillsPaid()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.box.paid'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::boxBillsUnpaid
* Implement testBoxBillsUnpaid().
*/
public function testBoxBillsUnpaid()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.box.unpaid'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::boxIn
* Implement testBoxIn().
*/
public function testBoxIn()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.box.in'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::boxOut
* Implement testBoxOut().
*/
public function testBoxOut()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.box.out'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::categories
* Implement testCategories().
*/
public function testCategories()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.categories'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::endTour
* Implement testEndTour().
*/
public function testEndTour()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('post', route('json.end-tour'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::expenseAccounts
* Implement testExpenseAccounts().
*/
public function testExpenseAccounts()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.expense-accounts'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::revenueAccounts
* Implement testRevenueAccounts().
*/
public function testRevenueAccounts()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.revenue-accounts'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::tags
* Implement testTags().
*/
public function testTags()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.tags'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::tour
* Implement testTour().
*/
public function testTour()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.tour'));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::transactionJournals
* Implement testTransactionJournals().
*/
public function testTransactionJournals()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$this->be($this->user());
$this->call('get', route('json.transaction-journals', ['deposit']));
$this->assertResponseStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::trigger
* Implement testTrigger().
*/
public function testTrigger()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
$this->be($this->user());
$this->call('get', route('json.trigger'));
$this->assertResponseStatus(200);
}
}