PHP 클래스 SettingsCest

파일 보기 프로젝트 열기: hillelcoren/invoice-ninja

공개 메소드들

메소드 설명
_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');

메소드 상세

_before() 공개 메소드

public _before ( FunctionalTester $I )
$I FunctionalTester

createProduct() 공개 메소드

public createProduct ( FunctionalTester $I )
$I FunctionalTester

createToken() 공개 메소드

public createToken ( FunctionalTester $I )
$I FunctionalTester

createUser() 공개 메소드

public createUser ( FunctionalTester $I )
$I FunctionalTester

productSettings() 공개 메소드

$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 runReport ( FunctionalTester $I )
$I FunctionalTester

updateEmailTemplates() 공개 메소드

public updateEmailTemplates ( FunctionalTester $I )
$I FunctionalTester

updateInvoiceSettings() 공개 메소드

$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 updateProduct ( FunctionalTester $I )
$I FunctionalTester

userDetails() 공개 메소드

$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