Fix unit test to be more restrictive

Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Christian Wolf 2023-10-09 23:14:23 +02:00
Родитель efc4ba9a0e
Коммит 6527aa1f32
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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']));
}