frontend\tests\FunctionalTester::seeValidationError PHP Method

seeValidationError() public method

public seeValidationError ( $message )
    public function seeValidationError($message)
    {
        $this->see($message, '.help-block');
    }

Usage Example

コード例 #1
0
ファイル: SignupCest.php プロジェクト: lanfp/testgit2
 public function signupWithEmptyFields(FunctionalTester $I)
 {
     $I->see('Signup', 'h1');
     $I->see('Please fill out the following fields to signup:');
     $I->submitForm($this->formId, []);
     $I->seeValidationError('Username cannot be blank.');
     $I->seeValidationError('Email cannot be blank.');
     $I->seeValidationError('Password cannot be blank.');
 }
All Usage Examples Of frontend\tests\FunctionalTester::seeValidationError