Code refactoring (filename func arg2 already assigned by default)
This commit is contained in:
@ -147,7 +147,7 @@ class CustomersTest extends FeatureTestCase
|
||||
Excel::matchByRegex();
|
||||
|
||||
Excel::assertDownloaded(
|
||||
'/' . str()->filename(trans_choice('general.customers', 2), '-') . '-\d{10}\.xlsx/',
|
||||
'/' . str()->filename(trans_choice('general.customers', 2)) . '-\d{10}\.xlsx/',
|
||||
function (Export $export) use ($count) {
|
||||
// Assert that the correct export is downloaded.
|
||||
return $export->collection()->count() === $count;
|
||||
@ -174,7 +174,7 @@ class CustomersTest extends FeatureTestCase
|
||||
Excel::matchByRegex();
|
||||
|
||||
Excel::assertDownloaded(
|
||||
'/' . str()->filename(trans_choice('general.customers', 2), '-') . '-\d{10}\.xlsx/',
|
||||
'/' . str()->filename(trans_choice('general.customers', 2)) . '-\d{10}\.xlsx/',
|
||||
function (Export $export) use ($select_count) {
|
||||
return $export->collection()->count() === $select_count;
|
||||
}
|
||||
|
Reference in New Issue
Block a user