-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Commit * Fix styling * Add Missing Test * Fix styling * Adjustments * Fix styling * Adjust Test * Fix styling * Fix Sorting Visual Test --------- Co-authored-by: lrljoe <[email protected]>
- Loading branch information
Showing
8 changed files
with
86 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Rappasoft\LaravelLivewireTables\Tests\Traits\Helpers; | ||
|
||
use Rappasoft\LaravelLivewireTables\Tests\TestCase; | ||
|
||
final class TableAttributeHelpersTest extends TestCase | ||
{ | ||
public function test_top_level_attributes_match(): void | ||
{ | ||
$topLevelAttributesArray = $this->basicTable->getTopLevelAttributesArray(); | ||
$this->assertSame('shouldBeDisplayed', $topLevelAttributesArray['x-show']); | ||
$this->assertSame('showTable(event)', $topLevelAttributesArray['x-on:show-table.window']); | ||
$this->assertSame('hideTable(event)', $topLevelAttributesArray['x-on:hide-table.window']); | ||
$this->assertSame('laravellivewiretable($wire)', $topLevelAttributesArray['x-data']); | ||
} | ||
|
||
public function test_top_level_attribute_bag_matches(): void | ||
{ | ||
$topLevelAttributeBag = $this->basicTable->getTopLevelAttributes(); | ||
|
||
$topLevelAttributesArray = $topLevelAttributeBag->getAttributes(); | ||
|
||
$this->assertSame('shouldBeDisplayed', $topLevelAttributesArray['x-show']); | ||
$this->assertSame('showTable(event)', $topLevelAttributesArray['x-on:show-table.window']); | ||
$this->assertSame('hideTable(event)', $topLevelAttributesArray['x-on:hide-table.window']); | ||
$this->assertSame('laravellivewiretable($wire)', $topLevelAttributesArray['x-data']); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters