Google\Cloud\Tests\System\Datastore\AllocateKeyTest::testAllocateIds PHP Метод

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

public testAllocateIds ( )
    public function testAllocateIds()
    {
        $kind = 'Person';
        $keys = self::$client->keys($kind);
        $allocatedKeys = self::$client->allocateIds($keys);
        foreach ($allocatedKeys as $key) {
            $path = $key->path()[0];
            $this->assertTrue(is_numeric($path['id']));
            $this->assertEquals($kind, $path['kind']);
        }
    }