Google\Cloud\Tests\Datastore\EntityMapperTest::testResponseToPropertiesBlobValue PHP Метод

testResponseToPropertiesBlobValue() публичный Метод

    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']);
    }