Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk authored and github-actions[bot] committed May 24, 2023
1 parent ffbc3a7 commit 874e88c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
12 changes: 6 additions & 6 deletions tests/Components/Choice/SwitchToggleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
'data-foo' => 'bar',
'id' => 'foo',
])
->contains('.switch-toggle', [
'class' => 'foo-class',
]);
->contains('.switch-toggle', [
'class' => 'foo-class',
]);
});
});

Expand Down Expand Up @@ -124,9 +124,9 @@
$div->contains('span.off', [
'text' => 'off',
])
->contains('span.on', [
'text' => 'on',
]);
->contains('span.on', [
'text' => 'on',
]);
});
});

Expand Down
8 changes: 4 additions & 4 deletions tests/Components/Files/FileUploadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
$div->contains('div', [
'x-on:livewire-upload-start' => 'isUploading = true',
])
->contains('input', [
'type' => 'file',
'wire:model' => 'file',
]);
->contains('input', [
'type' => 'file',
'wire:model' => 'file',
]);
});
});

Expand Down
14 changes: 7 additions & 7 deletions tests/Components/Inputs/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
Route::get('/test', fn () => Blade::render('<x-email name="email" type="url" id="my-email" />'));

get('/test')
->assertElementExists('input', function (AssertElement $input) {
$input->is('input')
->has('type', 'email')
->has('name', 'email')
->has('id', 'my-email')
->doesntHave('type', 'url');
});
->assertElementExists('input', function (AssertElement $input) {
$input->is('input')
->has('type', 'email')
->has('name', 'email')
->has('id', 'my-email')
->doesntHave('type', 'url');
});
});
30 changes: 15 additions & 15 deletions tests/Components/Inputs/TreeSelectOptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,23 @@
'text' => 'Foo 1',
'level' => '1',
])
->doesntContain('.tree-select__children');
->doesntContain('.tree-select__children');
})
->find('.tree-select__option-li:last-child', function (AssertElement $option) {
$option->contains('.tree-select__option', [
'text' => 'Foo 2',
'level' => '1',
])
->find('.tree-select__children', function (AssertElement $children) {
$children->find('.tree-select__option-li', function (AssertElement $option) {
$option->contains('.tree-select__option', [
'text' => 'Foo 2.1',
'level' => '2',
])
->doesntContain('.tree-select__children');
->find('.tree-select__option-li:last-child', function (AssertElement $option) {
$option->contains('.tree-select__option', [
'text' => 'Foo 2',
'level' => '1',
])
->find('.tree-select__children', function (AssertElement $children) {
$children->find('.tree-select__option-li', function (AssertElement $option) {
$option->contains('.tree-select__option', [
'text' => 'Foo 2.1',
'level' => '2',
])
->doesntContain('.tree-select__children');
});
});
});
});
});
});
});
});
Expand Down

0 comments on commit 874e88c

Please sign in to comment.