1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

New date test

This commit is contained in:
Matej Bačo 2022-07-08 09:38:49 +00:00
parent 76921ced71
commit 8fa227f3da

View file

@ -2406,7 +2406,8 @@ trait DatabasesBase
$document = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, $headers, [
'data' => [
'title' => 'Again Updated Date Test',
'$createdAt' => 1657271810 // Try to update it, should not work
'$createdAt' => 1657271810, // Try to update it, should not work
'$updatedAt' => 1657271810 // Try to update it, should not work
]
]);
@ -2414,6 +2415,7 @@ trait DatabasesBase
$this->assertEquals($document['body']['$createdAt'], $createdAt);
$this->assertNotEquals($document['body']['$updatedAt'], $updatedAt);
$this->assertNotEquals($document['body']['$updatedAt'], $updatedAtSecond);
$this->assertNotEquals($document['body']['$updatedAt'], 1657271810);
return $data;
}