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:
@@ -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));
|
||||
});
|
||||
|
Reference in New Issue
Block a user