Skip to content

Commit 13c7a94

Browse files
committed
rename class && namespace LaravelBatch to Batch
1 parent dd56ea2 commit 13c7a94

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/BatchInsertTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
use Mavinoo\Batch\Batch;
4+
25
require_once ('BootstrapDatabase.php');
36

47
class BatchInsertTest extends BootstrapDatabase
@@ -34,7 +37,7 @@ public function testBatchInsertWithFacade()
3437
];
3538
$batchSize = 500; // insert 500 (default), 100 minimum rows in one query
3639

37-
$result = LaravelBatch::insert($this->model, $this->columns, $values, $batchSize);
40+
$result = Batch::insert($this->model, $this->columns, $values, $batchSize);
3841

3942
$this->assertIsArray($result);
4043
$this->assertTrue($result['totalRows'] == 3);
@@ -73,7 +76,7 @@ public function testBatchInsertIncorrectColumnCount()
7376
];
7477
$batchSize = 500; // insert 500 (default), 100 minimum rows in one query
7578

76-
$result = LaravelBatch::insert($this->model, $this->columns, $values, $batchSize);
79+
$result = Batch::insert($this->model, $this->columns, $values, $batchSize);
7780
$this->assertFalse($result);
7881
}
7982

tests/BatchUpdateTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
require_once ('BootstrapDatabase.php');
33
use Carbon\Carbon;
4+
use Mavinoo\Batch\Batch;
45

56
class BatchUpdateTest extends BootstrapDatabase
67
{
@@ -35,7 +36,7 @@ private function insert()
3536
];
3637
$batchSize = 500; // insert 500 (default), 100 minimum rows in one query
3738

38-
$result = LaravelBatch::insert($this->model, $this->columns, $values, $batchSize);
39+
$result = Batch::insert($this->model, $this->columns, $values, $batchSize);
3940

4041
$this->assertIsArray($result);
4142
$this->assertTrue($result['totalRows'] == 3);
@@ -63,7 +64,7 @@ public function testBatchUpdateWithFacade()
6364
];
6465
$index = 'id';
6566

66-
$result = LaravelBatch::update($this->model, $columnValues, $index);
67+
$result = Batch::update($this->model, $columnValues, $index);
6768

6869
$this->assertTrue($result == 3);
6970
$this->model->truncate();

0 commit comments

Comments
 (0)