Code refactoring (filename func arg2 already assigned by default)

This commit is contained in:
EnesSacid-Buker
2022-12-16 10:36:57 +03:00
parent 4769010a6e
commit dcc714ff0c
6 changed files with 12 additions and 12 deletions

View File

@ -191,7 +191,7 @@ class InvoicesTest extends FeatureTestCase
Excel::matchByRegex();
Excel::assertDownloaded(
'/' . str()->filename(trans_choice('general.invoices', 2), '-') . '-\d{10}\.xlsx/',
'/' . str()->filename(trans_choice('general.invoices', 2)) . '-\d{10}\.xlsx/',
function (Export $export) use ($count) {
// Assert that the correct export is downloaded.
return $export->sheets()[0]->collection()->count() === $count;
@ -218,7 +218,7 @@ class InvoicesTest extends FeatureTestCase
Excel::matchByRegex();
Excel::assertDownloaded(
'/' . str()->filename(trans_choice('general.invoices', 2), '-') . '-\d{10}\.xlsx/',
'/' . str()->filename(trans_choice('general.invoices', 2)) . '-\d{10}\.xlsx/',
function (Export $export) use ($select_count) {
return $export->sheets()[0]->collection()->count() === $select_count;
}