fix: 🐛 remove useless test cases

This commit is contained in:
chunhei2008 2020-05-19 19:03:11 +08:00
parent b8156c1755
commit 421288f68b

View File

@ -32,22 +32,4 @@ class ValidateAttributesTest extends TestCase
$this->assertFalse($validator->validateAlphaNum('', 123.1));
$this->assertFalse($validator->validateAlphaNum('', '123_f1'));
}
public function testValidateAfter()
{
$validator = new ValidatesAttributesStub();
$this->assertTrue($validator->validateAfter('', '2020-05-20', ['2020-05-19']));
$this->assertFalse($validator->validateAfter('', '2020-05-18', ['2020-05-19']));
$this->assertFalse($validator->validateAfter('', '', ['2020-05-19']));
$this->assertFalse($validator->validateAfter('', null, ['2020-05-19']));
}
public function testValidateBefore()
{
$validator = new ValidatesAttributesStub();
$this->assertFalse($validator->validateBefore('', '2020-05-20', ['2020-05-19']));
$this->assertTrue($validator->validateBefore('', '2020-05-18', ['2020-05-19']));
$this->assertFalse($validator->validateBefore('', '', ['2020-05-19']));
$this->assertFalse($validator->validateBefore('', null, ['2020-05-19']));
}
}