Felix Kiss
Felix Kiss
Basic Model validation, 2 tests defined: ``` php public function testShouldBeInvalidWithoutUsername() { $user = Factory::user(); $user->username = null; Should::beFalse($user->validate(), 'User should be invalid without username'); } public function testShouldPreventFromSavingWithoutUsername() {...
I have installed a package to extend `Validator` with additional validation rules (https://github.com/Intervention/validation). My test looks like this: ``` php public function testShouldBeInvalidWithoutValidCreditcardNumber() { $payment = Factory::payment(); $payment->creditcard = 'foo';...