@@ -295,7 +295,6 @@ public function testGetDateRangeFirstPart($range, $customStart, $customEnd, $exp
295
295
* @param string $customStart
296
296
* @param string $customEnd
297
297
* @param string $config
298
- * @param string $configVal
299
298
* @param int $expectedYear
300
299
* @dataProvider secondPartDateRangeDataProvider
301
300
* @return void
@@ -305,7 +304,6 @@ public function testGetDateRangeSecondPart(
305
304
$ customStart ,
306
305
$ customEnd ,
307
306
$ config ,
308
- $ configVal ,
309
307
$ expectedYear
310
308
): void {
311
309
$ this ->scopeConfigMock
@@ -315,7 +313,7 @@ public function testGetDateRangeSecondPart(
315
313
$ config ,
316
314
ScopeInterface::SCOPE_STORE
317
315
)
318
- ->willReturn ($ configVal );
316
+ ->willReturn (1 );
319
317
320
318
$ result = $ this ->collection ->getDateRange ($ range , $ customStart , $ customEnd );
321
319
$ this ->assertCount (3 , $ result );
@@ -483,9 +481,9 @@ public function secondPartDateRangeDataProvider(): array
483
481
$ expected2YTDYear = $ expectedYear - 1 ;
484
482
485
483
return [
486
- ['1m ' , 1 , 10 , 'reports/dashboard/mtd_start ' , ' 1 ' , $ expectedYear ],
487
- ['1y ' , 1 , 10 , 'reports/dashboard/ytd_start ' , ' 1,1 ' , $ expectedYear ],
488
- ['2y ' , 1 , 10 , 'reports/dashboard/ytd_start ' , ' 1,1 ' , $ expected2YTDYear ]
484
+ ['1m ' , 1 , 10 , 'reports/dashboard/mtd_start ' , $ expectedYear ],
485
+ ['1y ' , 1 , 10 , 'reports/dashboard/ytd_start ' , $ expectedYear ],
486
+ ['2y ' , 1 , 10 , 'reports/dashboard/ytd_start ' , $ expected2YTDYear ]
489
487
];
490
488
}
491
489
0 commit comments