Google\Cloud\Tests\System\Datastore\AllocateKeyTest::testAllocateId PHP Method

testAllocateId() public method

public testAllocateId ( )
    public function testAllocateId()
    {
        $kind = 'Person';
        $key = self::$client->key($kind);
        $path = self::$client->allocateId($key)->path()[0];
        $this->assertTrue(is_numeric($path['id']));
        $this->assertEquals($kind, $path['kind']);
    }