1
0
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:
Sergey Romanenko
2022-01-29 12:19:10 +03:00
committed by GitHub
parent 4ab3794d1f
commit 3a9e16f679

View File

@@ -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));
});