ahsankhatri / firestore-php

Firestore PHP Client (without gRPC extension)
MIT License
62 stars 57 forks source link

Add a few tests for FirestoreDocument and fix odd behaviour of getCreatedTime #15

Closed edruid closed 4 years ago

edruid commented 5 years ago

I wrote a few tests for FirestoreDocument, it's not complete but it's what I had time for. In the course of testing I found that getCreatedTime and getUpdatedTime was returning now when no value was provided (such as listing a non-existent document or creating a new document), so I changed that as well.

Please let me know if you want me to change anything about the style, structure or something else about the tests and I will try to change them accordingly.