PHP Class SettingsCest

Show file Open project: hillelcoren/invoice-ninja

Public Methods

Method Description
_before ( FunctionalTester $I )
createProduct ( FunctionalTester $I )
createToken ( FunctionalTester $I )
createUser ( FunctionalTester $I )
productSettings ( FunctionalTester $I ) * public function localization(FunctionalTester $I) { $I->wantTo('update the localization'); $I->amOnPage('/settings/localization');
runReport ( FunctionalTester $I )
updateEmailTemplates ( FunctionalTester $I )
updateInvoiceSettings ( FunctionalTester $I ) * public function updateNotifications(FunctionalTester $I) { $I->wantTo('update notification settings'); $I->amOnPage('/settings/notifications');
updateProduct ( FunctionalTester $I )
userDetails ( FunctionalTester $I ) * public function companyDetails(FunctionalTester $I) { $I->wantTo('update the company details'); $I->amOnPage('/settings/company_details');

Method Details

_before() public method

public _before ( FunctionalTester $I )
$I FunctionalTester

createProduct() public method

public createProduct ( FunctionalTester $I )
$I FunctionalTester

createToken() public method

public createToken ( FunctionalTester $I )
$I FunctionalTester

createUser() public method

public createUser ( FunctionalTester $I )
$I FunctionalTester

productSettings() public method

$name = $this->faker->company; $I->fillField(['name' => 'name'], $name); $I->click('Save'); $I->seeResponseCodeIs(200); $I->seeRecord('accounts', array('name' => $name)); }
public productSettings ( FunctionalTester $I )
$I FunctionalTester

runReport() public method

public runReport ( FunctionalTester $I )
$I FunctionalTester

updateEmailTemplates() public method

public updateEmailTemplates ( FunctionalTester $I )
$I FunctionalTester

updateInvoiceSettings() public method

$terms = $this->faker->text(80); $I->fillField(['name' => 'invoice_terms'], $terms); $I->fillField(['name' => 'invoice_footer'], $this->faker->text(60)); $I->click('Save'); $I->seeResponseCodeIs(200); $I->seeRecord('accounts', array('invoice_terms' => $terms)); }
public updateInvoiceSettings ( FunctionalTester $I )
$I FunctionalTester

updateProduct() public method

public updateProduct ( FunctionalTester $I )
$I FunctionalTester

userDetails() public method

$name = $this->faker->company; $I->fillField(['name' => 'name'], $name); $I->fillField(['name' => 'work_email'], $this->faker->safeEmail); $I->fillField(['name' => 'work_phone'], $this->faker->phoneNumber); $I->fillField(['name' => 'address1'], $this->faker->buildingNumber . ' ' . $this->faker->streetName); $I->fillField(['name' => 'address2'], $this->faker->secondaryAddress); $I->fillField(['name' => 'city'], $this->faker->city); $I->fillField(['name' => 'state'], $this->faker->state); $I->fillField(['name' => 'postal_code'], $this->faker->postcode); $I->click('Save'); $I->seeResponseCodeIs(200); $I->seeRecord('accounts', array('name' => $name)); }
public userDetails ( FunctionalTester $I )
$I FunctionalTester