Skip to content

Commit

Permalink
tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrzelak committed Jun 30, 2024
1 parent ba4e255 commit 0e7eff4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/AttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,13 @@ public function testCanGetAttribute(): void

$this->assertEquals('test', $attributes->getAttribute('data-test'));
}

public function testCanRemoveAttribute(): void
{
$attributes = new Attributes();
$attributes->setAttribute('data-test', 'test');
$attributes->setAttribute('data-test');

$this->assertEquals([], $attributes->getAttributes());
}
}

0 comments on commit 0e7eff4

Please sign in to comment.