Skip to content

Commit

Permalink
Issue #6: Allow Link creation with null attribute.
Browse files Browse the repository at this point in the history
Signed-off-by: alexmerlin <[email protected]>
  • Loading branch information
alexmerlin committed Apr 20, 2023
1 parent 5b79923 commit 5197457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/LinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testCanConstructLinkWithRelationAndTemplatedFlag(): void

public function testCanConstructLinkWithRelationAndAttributes(): void
{
$attributes = ['foo' => 'bar', 'baz' => null];
$attributes = ['foo' => 'bar', 'bar' => null];
$link = new Link('self', '', false, $attributes);
$this->assertEquals(['self'], $link->getRels());
$this->assertEquals($attributes, $link->getAttributes());
Expand Down

0 comments on commit 5197457

Please sign in to comment.