Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Mar 22, 2022
1 parent 965d108 commit f8efce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Accordion/AccordionUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public function testStructureAccordionSingle()

$accordionUtil = new AccordionUtil($container);

$data = ['id' => 2, 'pid' => 4];
$data = ['id' => 2, 'pid' => 4, 'ptable' => 'tl_article'];
$accordionUtil->structureAccordionSingle($data);
$this->assertArraySubset(['accordion_parentId' => 1, 'accordion_last' => true], $data);
$this->assertArrayNotHasKey('accordion_first', $data);

$data = ['id' => 2, 'pid' => 4];
$data = ['id' => 2, 'pid' => 4, 'ptable' => 'tl_article'];
$accordionUtil->structureAccordionSingle($data);
$this->assertArraySubset(['accordion_parentId' => 1, 'accordion_last' => true], $data);
$this->assertArrayNotHasKey('accordion_first', $data);
Expand Down

0 comments on commit f8efce4

Please sign in to comment.