public static function setUpBeforeClass() { parent::setUpBeforeClass(); $table = TableServiceFunctionalTestData::$TEST_TABLE_NAMES[0]; self::$entitiesInTable = self::getEntitiesToQueryOver(); $baseWithRestProxy = new FunctionalTestBase(); $parts = array(); foreach (self::$entitiesInTable as $entity) { if (array_key_exists($entity->getPartitionKey(), $parts) === false) { $parts[$entity->getPartitionKey()] = array(); } array_push($parts[$entity->getPartitionKey()], $entity); } foreach ($parts as $part) { $batch = new BatchOperations(); foreach ($part as $entity) { $batch->addInsertEntity($table, $entity); } $baseWithRestProxy->restProxy->batch($batch); } }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); }