firefly-iii/tests/functional/JsonControllerCest.php

57 lines
1.2 KiB
PHP
Raw Normal View History

2014-12-21 11:09:35 -06:00
<?php
/**
2014-12-24 07:33:02 -06:00
*
* @SuppressWarnings("CamelCase")
* @SuppressWarnings("short")
*
2014-12-21 11:09:35 -06:00
* Class JsonControllerCest
*/
class JsonControllerCest
{
/**
* @param FunctionalTester $I
*/
public function _after(FunctionalTester $I)
{
}
/**
* @param FunctionalTester $I
*/
public function _before(FunctionalTester $I)
{
$I->amLoggedAs(['email' => 'thegrumpydictator@gmail.com', 'password' => 'james']);
}
/**
* @param FunctionalTester $I
*/
public function categories(FunctionalTester $I)
{
$I->wantTo('See a JSON list of categories.');
$I->amOnPage('/json/categories');
$I->canSeeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
public function expenseAccounts(FunctionalTester $I)
{
$I->wantTo('See a JSON list of expense accounts.');
$I->amOnPage('/json/expense-accounts');
$I->canSeeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
public function revenueAccounts(FunctionalTester $I)
{
$I->wantTo('See a JSON list of revenue accounts.');
$I->amOnPage('/json/revenue-accounts');
$I->canSeeResponseCodeIs(200);
}
2015-01-01 23:16:49 -06:00
}