1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

fix(tests): remove ctype_digit check

This commit is contained in:
Sergey Romanenko
2022-01-29 12:17:05 +03:00
committed by GitHub
parent 1eec78d738
commit 4ab3794d1f

View File

@@ -16,5 +16,5 @@ test('PublishedAtField', function () {
$published_at = entries()->fetch('foo')['published_at'];
$this->assertTrue(strlen($published_at) > 0);
$this->assertTrue((ctype_digit($published_at) && strtotime(date('Y-m-d H:i:s', $published_at)) === (int)$published_at));
$this->assertTrue((strtotime(date('Y-m-d H:i:s', $published_at)) === (int)$published_at));
});