Update core 8.3.0

This commit is contained in:
Rob Davies 2017-04-13 15:53:35 +01:00
parent da7a7918f8
commit cd7a898e66
6144 changed files with 132297 additions and 87747 deletions

View file

@ -12,13 +12,13 @@ use Drupal\entity_test\Entity\EntityTest;
*/
function simpletest_test_install() {
$total = 2;
$operations = array();
$operations = [];
for ($i = 1; $i <= $total; $i++) {
$operations[] = array('_simpletest_test_callback', array($i));
$operations[] = ['_simpletest_test_callback', [$i]];
}
$batch = array(
$batch = [
'operations' => $operations,
);
];
batch_set($batch);
$batch =& batch_get();
$batch['progressive'] = FALSE;
@ -29,6 +29,6 @@ function simpletest_test_install() {
* Callback for batch operations.
*/
function _simpletest_test_callback($id) {
$entity = EntityTest::create(array('id' => $id));
$entity = EntityTest::create(['id' => $id]);
$entity->save();
}