Skip to content

Commit c8cc3e6

Browse files
committed
Tweaks to tests
1 parent ab3c278 commit c8cc3e6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/Traits/Configuration/CollapsingColumnConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function setCollapsingColumnsDisabled(): self
2727

2828
public function unsetCollapsedStatuses(): void
2929
{
30-
$this->shouldAlwaysCollapse = false;
31-
$this->shouldMobileCollapse = false;
32-
$this->shouldTabletCollapse = false;
30+
unset($this->shouldAlwaysCollapse); /* @phpstan-ignore unset.possiblyHookedProperty */
31+
unset($this->shouldMobileCollapse); /* @phpstan-ignore unset.possiblyHookedProperty */
32+
unset($this->shouldTabletCollapse); /* @phpstan-ignore unset.possiblyHookedProperty */
3333
}
3434
}

tests/Unit/Traits/Configuration/ComponentConfigurationTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,47 @@ public function test_initial_wrapper_attributes_get_set(): void
2020

2121
public function test_can_set_table_wrapper_attributes(): void
2222
{
23-
$this->assertSame($this->basicTable->getTableWrapperAttributes(), ['default' => true]);
23+
$this->assertSame($this->basicTable->getTableWrapperAttributes(), ['wire:key' => 'table-twrap', 'default' => true]);
2424

2525
$this->basicTable->setTableWrapperAttributes(['this' => 'that']);
2626

27-
$this->assertSame($this->basicTable->getTableWrapperAttributes(), ['this' => 'that']);
27+
$this->assertSame($this->basicTable->getTableWrapperAttributes(), ['wire:key' => 'table-twrap', 'this' => 'that']);
2828
}
2929

3030
public function test_can_set_table_attributes(): void
3131
{
32-
$this->assertSame($this->basicTable->getTableAttributes(), ['id' => 'table-'.$this->basicTable->getTableName(), 'default' => true]);
32+
$this->assertSame($this->basicTable->getTableAttributes(), ['wire:key' => 'table-table', 'id' => 'table-'.$this->basicTable->getTableName(), 'default' => true]);
3333

3434
$this->basicTable->setTableAttributes(['this' => 'that']);
3535

36-
$this->assertSame($this->basicTable->getTableAttributes(), ['id' => 'table-'.$this->basicTable->getTableName(), 'this' => 'that']);
36+
$this->assertSame($this->basicTable->getTableAttributes(), ['wire:key' => 'table-table', 'id' => 'table-'.$this->basicTable->getTableName(), 'this' => 'that']);
3737
}
3838

3939
public function test_can_override_table_default_id(): void
4040
{
41-
$this->assertSame($this->basicTable->getTableAttributes(), ['id' => 'table-'.$this->basicTable->getTableName(), 'default' => true]);
41+
$this->assertSame($this->basicTable->getTableAttributes(), ['wire:key' => 'table-table', 'id' => 'table-'.$this->basicTable->getTableName(), 'default' => true]);
4242

4343
$this->basicTable->setTableAttributes(['id' => 'newTableID', 'this' => 'that']);
4444

45-
$this->assertSame($this->basicTable->getTableAttributes(), ['id' => 'newTableID', 'this' => 'that']);
45+
$this->assertSame($this->basicTable->getTableAttributes(), ['wire:key' => 'table-table', 'id' => 'newTableID', 'this' => 'that']);
4646
}
4747

4848
public function test_can_set_thead_attributes(): void
4949
{
50-
$this->assertSame($this->basicTable->getTheadAttributes(), ['default' => true]);
50+
$this->assertSame($this->basicTable->getTheadAttributes(), ['wire:key' => 'table-thead', 'default' => true]);
5151

5252
$this->basicTable->setTheadAttributes(['this' => 'that']);
5353

54-
$this->assertSame($this->basicTable->getTheadAttributes(), ['this' => 'that']);
54+
$this->assertSame($this->basicTable->getTheadAttributes(), ['wire:key' => 'table-thead', 'this' => 'that']);
5555
}
5656

5757
public function test_can_set_tbody_attributes(): void
5858
{
59-
$this->assertSame($this->basicTable->getTbodyAttributes(), ['default' => true]);
59+
$this->assertSame($this->basicTable->getTbodyAttributes(), ['wire:key' => 'table-tbody', 'id' => 'table-tbody', 'default' => true]);
6060

6161
$this->basicTable->setTbodyAttributes(['this' => 'that']);
6262

63-
$this->assertSame($this->basicTable->getTbodyAttributes(), ['this' => 'that']);
63+
$this->assertSame($this->basicTable->getTbodyAttributes(), ['wire:key' => 'table-tbody', 'id' => 'table-tbody', 'this' => 'that']);
6464
}
6565

6666
public function test_can_set_th_attributes(): void

0 commit comments

Comments
 (0)