Skip to content

Commit

Permalink
Add setAdditionalSelects NonArray Test (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Sep 3, 2023
1 parent 84bb7b4 commit 073b6d0
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 @@ -163,6 +163,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 073b6d0

Please sign in to comment.