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

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

    public function testConvertValueEntityWithoutKey()
    {
        $type = 'entityValue';
        $val = ['properties' => ['prop' => ['stringValue' => 'test']]];
        $res = $this->mapper->convertValue($type, $val);
        $this->assertTrue(is_array($res));
        $this->assertEquals('test', $res['prop']);
    }