mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-05 05:07:58 +08:00
fix: 🐛 remove useless test cases
This commit is contained in:
parent
b8156c1755
commit
421288f68b
@ -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']));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user