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

testConvertValueBlob() public method

    public function testConvertValueBlob()
    {
        $type = 'blobValue';
        $val = base64_encode('hello world');
        $res = $this->mapper->convertValue($type, $val);
        $this->assertInstanceOf(Blob::class, $res);
        $this->assertEquals('hello world', (string) $res);
    }