From 6527aa1f3287b084f170e9a92c21964b841690ba Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Mon, 9 Oct 2023 23:14:23 +0200 Subject: [PATCH] Fix unit test to be more restrictive Signed-off-by: Christian Wolf --- tests/Unit/Helper/Filter/JSON/RecipeIdTypeFilterTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Helper/Filter/JSON/RecipeIdTypeFilterTest.php b/tests/Unit/Helper/Filter/JSON/RecipeIdTypeFilterTest.php index 79741c20..33b2ea7c 100644 --- a/tests/Unit/Helper/Filter/JSON/RecipeIdTypeFilterTest.php +++ b/tests/Unit/Helper/Filter/JSON/RecipeIdTypeFilterTest.php @@ -22,6 +22,7 @@ class RecipeIdTypeFilterTest extends TestCase { $stub['id'] = 123; $expected = $stub; + $expected['id'] = '123'; yield [$stub, $expected, true]; $stub['id'] = '123'; @@ -32,7 +33,7 @@ class RecipeIdTypeFilterTest extends TestCase { public function testFilter($input, $expected, $changed) { $ret = $this->dut->apply($input); - $this->assertEquals($expected, $input); + $this->assertSame($expected, $input); $this->assertEquals($changed, $ret); $this->assertTrue(is_string($input['id'])); }