Skip to content

Commit ffad8cb

Browse files
Update ComponentAttributesTest.php
1 parent 2ddc47b commit ffad8cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/TwigComponent/tests/Unit/ComponentAttributesTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,11 @@ public function testCannotRenderNonStringAttribute(): void
224224

225225
$attributes->render('attr1');
226226
}
227+
228+
public function testCanCheckIfAttributeExists(): void
229+
{
230+
$attributes = new ComponentAttributes(['foo' => 'bar']);
231+
232+
$this->assertTrue($attributes->has('foo'));
233+
}
227234
}

0 commit comments

Comments
 (0)