Google\Cloud\Tests\Datastore\EntityMapperTest::testResponseToPropertiesEntityValue PHP 메소드

testResponseToPropertiesEntityValue() 공개 메소드

    public function testResponseToPropertiesEntityValue()
    {
        $data = ['foo' => ['entityValue' => ['properties' => ['bar' => ['stringValue' => 'baz']]]]];
        $res = $this->mapper->responseToEntityProperties($data)['properties'];
        $this->assertEquals('baz', $res['foo']['bar']);
    }