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

testResponseToPropertiesBlobValue() public method

    public function testResponseToPropertiesBlobValue()
    {
        $data = ['foo' => ['blobValue' => base64_encode('hello world')]];
        $res = $this->mapper->responseToEntityProperties($data)['properties'];
        $this->assertInstanceOf(Blob::class, $res['foo']);
        $this->assertEquals('hello world', (string) $res['foo']);
    }