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

testResponseToPropertiesGeoPoint() 공개 메소드

    public function testResponseToPropertiesGeoPoint()
    {
        $point = ['latitude' => 1, 'longitude' => -1];
        $data = ['foo' => ['geoPointValue' => $point]];
        $res = $this->mapper->responseToEntityProperties($data)['properties'];
        $this->assertInstanceOf(GeoPoint::class, $res['foo']);
        $this->assertEquals($point, $res['foo']->point());
    }