Skip to content

Commit

Permalink
split up assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Aug 29, 2024
1 parent 8ffbce6 commit 855046a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/Unit/GroupFunctionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@
};

expect(group($component, 'a'))
->foo->toBe(1)
->foo->toBe(1);
});

it('returns null when a property not found', function () {
$component = new class extends TestComponent
{
#[Group('a')]
public $foo = 1;
};

expect(group($component, 'a'))
->bar->toBe(null);
});

Expand Down

0 comments on commit 855046a

Please sign in to comment.