public function keyObject() { return ['partitionId' => $this->partitionId($this->projectId, $this->options['namespaceId']), 'path' => $this->path]; }
public function testJsonSerialize() { $key = new Key('foo'); $key->pathElement('Robots', '1000', Key::TYPE_NAME); $this->assertEquals($key->jsonSerialize(), $key->keyObject()); }