Skip to content

Commit f6ea12f

Browse files
committed
Tests for MslsMain concluded
1 parent 8e32c1b commit f6ea12f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

patchwork.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"redefinable-internals": ["filter_input_array"]}

tests/TestMslsMain.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public function test_get_input_array_empty(): void {
2929
}
3030

3131
public function test_get_input_array(): void {
32-
Functions\when('filter_input_array', );
32+
Functions\when('filter_input_array' )->justReturn( [ 'some_other_key' => 1, 'msls_input_de_DE' => 2 ] );
3333

34-
$this->assertEquals( [ 'de_DE' => 1 ], $this->test->get_input_array( 1 ) );
34+
$this->assertEquals( [ 'de_DE' => 2 ], $this->test->get_input_array( 1 ) );
3535
}
3636

3737
public function test_is_autosave(): void {

0 commit comments

Comments
 (0)