mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 13:46:42 +02:00
fix(tests): remove ctype_digit check
This commit is contained in:
@@ -16,5 +16,5 @@ test('ModifiedAtField', function () {
|
||||
$modified_at = entries()->fetch('foo')['modified_at'];
|
||||
|
||||
$this->assertTrue(strlen($modified_at) > 0);
|
||||
$this->assertTrue((ctype_digit($modified_at) && strtotime(date('Y-m-d H:i:s', $modified_at)) === (int)$modified_at));
|
||||
$this->assertTrue((strtotime(date('Y-m-d H:i:s', $modified_at)) === (int)$modified_at));
|
||||
});
|
||||
|
Reference in New Issue
Block a user