New tests.

This commit is contained in:
James Cole
2014-12-23 21:55:19 +01:00
parent b741565f57
commit 3ce317b170
7 changed files with 35 additions and 5 deletions

View File

@@ -58,6 +58,8 @@ class PiggyBankControllerCest
$I->wantTo('destroy a piggy bank');
$I->amOnPage('/piggybanks/delete/1');
$I->see('Delete "New camera"');
$I->submitForm('#destroy', []);
$I->see('Piggy bank "New camera" deleted.');
}
/**
@@ -70,6 +72,16 @@ class PiggyBankControllerCest
$I->see('Edit piggy bank "New camera"');
}
/**
* @param FunctionalTester $I
*/
public function editWithTargetDate(FunctionalTester $I)
{
$I->wantTo('edit a piggy bank with a target date');
$I->amOnPage('/piggybanks/edit/2');
$I->see('Edit piggy bank "New clothes"');
}
/**
* @param FunctionalTester $I
*/