Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/ChunkIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
$result = collect($chunks);

$this->assertEquals(count((array) $result->first()), 10);
$this->assertEquals($result->keys()->count(), 100);
$this->assertEquals($result->keys()->count(), 10);
});
8 changes: 4 additions & 4 deletions tests/CsvImporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
->assertSet('fileHeaders', [
'id', 'first_name', 'last_name', 'email', 'company', 'vip', 'birthday', 'created_at', 'updated_at',
])
->assertSet('fileRowCount', 1000);
->assertSet('fileRowCount', 100);
});

it('throws validation errors, if the file extension does not match', function () {
Expand Down Expand Up @@ -248,7 +248,7 @@

Bus::assertBatched(function (PendingBatch $batch) {
return $batch->name == 'import-csv' &&
$batch->jobs->count() === 100;
$batch->jobs->count() === 10;
});

$this->assertEquals(Import::count(), 1);
Expand Down Expand Up @@ -282,8 +282,8 @@

$this->assertEquals(Import::count(), 1);
$this->assertEquals($import->count(), 1);
$this->assertEquals(Customer::count(), 1000);
$this->assertEquals($import->first()->processed_rows, 1000);
$this->assertEquals(Customer::count(), 100);
$this->assertEquals($import->first()->processed_rows, 100);
});

it('toggles import button', function () {
Expand Down
Loading