Skip to content

Commit

Permalink
Add NonArray setAdditionalSelects Test (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Sep 3, 2023
1 parent 648a6ca commit 4ee351e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Traits/Helpers/ComponentHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ public function can_get_additional_selects(): void
$this->assertEquals(['id', 'name'], $this->basicTable->getAdditionalSelects());
}

/** @test */
public function can_get_additional_selects_nonarray(): void
{
$this->assertEquals([], $this->basicTable->getAdditionalSelects());

$this->basicTable->setAdditionalSelects('name');

$this->assertEquals(['name'], $this->basicTable->getAdditionalSelects());
}

/** @test */
public function can_get_configurable_areas(): void
{
Expand Down

0 comments on commit 4ee351e

Please sign in to comment.