public function testEntity() { $key = $this->datastore->key('Person', 'Foo'); $entity = $this->datastore->entity($key, ['foo' => 'bar']); $this->assertInstanceOf(Entity::class, $entity); $this->assertEquals($entity['foo'], 'bar'); }