File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ protected function setUp(): void {
22
22
\Mockery::namedMock ( 'WooCommerce ' , \stdClass::class );
23
23
24
24
Functions \when ( 'esc_html ' )->returnArg ();
25
+ Functions \when ( 'esc_html__ ' )->returnArg ();
25
26
Functions \when ( 'esc_attr ' )->returnArg ();
26
27
Functions \when ( 'esc_url ' )->returnArg ();
27
28
Functions \when ( '__ ' )->returnArg ();
Original file line number Diff line number Diff line change @@ -373,7 +373,6 @@ function test_main_section(): void {
373
373
$ obj = $ this ->get_sut ();
374
374
375
375
Functions \expect ( 'add_settings_field ' )->times ( 12 )->andReturnFirstArg ();
376
- Functions \expect ( 'esc_html__ ' )->times ( 12 )->andReturnFirstArg ();
377
376
378
377
$ this ->assertEquals ( 12 , $ obj ->main_section () );
379
378
}
@@ -382,7 +381,6 @@ function test_advanced_section(): void {
382
381
$ obj = $ this ->get_sut ();
383
382
384
383
Functions \expect ( 'add_settings_field ' )->times ( 5 )->andReturnFirstArg ();
385
- Functions \expect ( 'esc_html__ ' )->times ( 5 )->andReturnFirstArg ();
386
384
387
385
$ this ->assertEquals ( 5 , $ obj ->advanced_section () );
388
386
}
You can’t perform that action at this time.
0 commit comments