frontend\tests\FunctionalTester::seeValidationError PHP 메소드

seeValidationError() 공개 메소드

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

Usage Example

예제 #1
0
 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