Skip to content

Commit 1e02cc4

Browse files
committed
UnitTests adjusted
1 parent 6e5a28e commit 1e02cc4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/phpunit/MslsUnitTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ protected function setUp(): void {
2222
\Mockery::namedMock( 'WooCommerce', \stdClass::class );
2323

2424
Functions\when( 'esc_html' )->returnArg();
25+
Functions\when( 'esc_html__' )->returnArg();
2526
Functions\when( 'esc_attr' )->returnArg();
2627
Functions\when( 'esc_url' )->returnArg();
2728
Functions\when( '__' )->returnArg();

tests/phpunit/TestMslsAdmin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ function test_main_section(): void {
373373
$obj = $this->get_sut();
374374

375375
Functions\expect( 'add_settings_field' )->times( 12 )->andReturnFirstArg();
376-
Functions\expect( 'esc_html__' )->times( 12 )->andReturnFirstArg();
377376

378377
$this->assertEquals( 12, $obj->main_section() );
379378
}
@@ -382,7 +381,6 @@ function test_advanced_section(): void {
382381
$obj = $this->get_sut();
383382

384383
Functions\expect( 'add_settings_field' )->times( 5 )->andReturnFirstArg();
385-
Functions\expect( 'esc_html__' )->times( 5 )->andReturnFirstArg();
386384

387385
$this->assertEquals( 5, $obj->advanced_section() );
388386
}

0 commit comments

Comments
 (0)