Google\Cloud\Tests\Datastore\EntityMapperTest::testResponseToProperties PHP Method

testResponseToProperties() public method

    public function testResponseToProperties()
    {
        $data = ['foo' => ['meaning' => 1, 'stringValue' => 'bar'], 'dubs' => ['doubleValue' => 1.1, 'meaning' => 2]];
        $res = $this->mapper->responseToEntityProperties($data)['properties'];
        $this->assertEquals('bar', $res['foo']);
        $this->assertEquals(1.1, $res['dubs']);
    }