Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Upgraded to attributes
  • Loading branch information
pascalbaljet committed Feb 21, 2025
commit 9bb2b8d25004dd33f883e2cb5e8be2f5625e393f
2 changes: 1 addition & 1 deletion app/tests/Browser/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class AuthTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_handles_the_login_redirect()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/Bridge/InlineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class InlineTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_supports_inline_templates()
{
$this->browse(function (Browser $browser) {
Expand Down
6 changes: 3 additions & 3 deletions app/tests/Browser/Bridge/MethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MethodTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_call_a_php_method_without_losing_state()
{
$this->browse(function (Browser $browser) {
Expand All @@ -24,7 +24,7 @@ public function it_can_call_a_php_method_without_losing_state()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_call_a_php_method_with_arguments()
{
$this->browse(function (Browser $browser) {
Expand All @@ -40,7 +40,7 @@ public function it_can_call_a_php_method_with_arguments()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_save_eloquent_models_and_refresh_the_state()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/Bridge/PropsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class PropsTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_has_two_way_binding_between_vue_and_php()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/Bridge/SlotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class SlotTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_renders_the_original_view_in_the_vue_component()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/ContentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ContentTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_render_rendered_html()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/CustomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class CustomTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_use_a_custom_component()
{
$this->browse(function (Browser $browser) {
Expand Down
8 changes: 4 additions & 4 deletions app/tests/Browser/DataStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class DataStoreTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_has_two_way_binding_for_multiple_data_sets()
{
$this->browse(function (Browser $browser) {
Expand All @@ -24,7 +24,7 @@ public function it_has_two_way_binding_for_multiple_data_sets()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_have_multiple_default_data_sets()
{
$this->browse(function (Browser $browser) {
Expand All @@ -43,7 +43,7 @@ public function it_can_have_multiple_default_data_sets()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_remember_the_state_of_the_data()
{
$this->browse(function (Browser $browser) {
Expand Down Expand Up @@ -71,7 +71,7 @@ public function it_can_remember_the_state_of_the_data()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_remember_the_state_of_the_data_in_local_storage()
{
$this->browse(function (Browser $browser) {
Expand Down
12 changes: 6 additions & 6 deletions app/tests/Browser/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class DataTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_has_two_way_binding()
{
$this->browse(function (Browser $browser) {
Expand All @@ -18,7 +18,7 @@ public function it_has_two_way_binding()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_have_a_default_data_set()
{
$this->browse(function (Browser $browser) {
Expand All @@ -34,7 +34,7 @@ public function it_can_have_a_default_data_set()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_bind_an_eloquent_model()
{
$this->browse(function (Browser $browser) {
Expand All @@ -44,7 +44,7 @@ public function it_can_bind_an_eloquent_model()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_remember_the_state_of_the_data()
{
$this->browse(function (Browser $browser) {
Expand All @@ -62,7 +62,7 @@ public function it_can_remember_the_state_of_the_data()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_remember_the_state_of_the_data_with_a_default_dataset()
{
$this->browse(function (Browser $browser) {
Expand All @@ -80,7 +80,7 @@ public function it_can_remember_the_state_of_the_data_with_a_default_dataset()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_remember_the_state_of_the_data_in_local_storage()
{
$this->browse(function (Browser $browser) {
Expand Down
12 changes: 6 additions & 6 deletions app/tests/Browser/DeferTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class DeferTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_loads_the_data_from_the_api()
{
$this->browse(function (Browser $browser) {
Expand All @@ -19,7 +19,7 @@ public function it_loads_the_data_from_the_api()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_loads_the_data_from_a_dynamic_url()
{
$this->browse(function (Browser $browser) {
Expand All @@ -31,7 +31,7 @@ public function it_loads_the_data_from_a_dynamic_url()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_use_the_poll_attribute_to_poll_for_new_data()
{
$this->browse(function (Browser $browser) {
Expand All @@ -44,7 +44,7 @@ public function it_can_use_the_poll_attribute_to_poll_for_new_data()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_manually_wait_for_a_watched_value_to_change()
{
$this->browse(function (Browser $browser) {
Expand All @@ -58,7 +58,7 @@ public function it_can_manually_wait_for_a_watched_value_to_change()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_reload_the_request()
{
$this->browse(function (Browser $browser) {
Expand All @@ -70,7 +70,7 @@ public function it_can_reload_the_request()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_use_the_request_attribute_with_a_javascript_object()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/DialogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class DialogTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_hides_the_dialog_on_navigation()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/ErrorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ErrorsTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_show_the_errors_from_the_session()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/EventBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class EventBusTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_subscribe_to_an_event_with_a_custom_script()
{
$this->browse(function (Browser $browser) {
Expand Down
16 changes: 8 additions & 8 deletions app/tests/Browser/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EventTest extends DuskTestCase
{
use UsesWebsocketsServerTrait;

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_redirect_on_an_event()
{
$this->browse(function (Browser $browser) {
Expand All @@ -34,7 +34,7 @@ public function it_can_redirect_on_an_event()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_refresh_on_an_event()
{
$this->browse(function (Browser $browser) {
Expand All @@ -59,7 +59,7 @@ public function it_can_refresh_on_an_event()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_refresh_on_an_event_while_preserving_the_scroll_position_from_the_event()
{
$this->browse(function (Browser $browser) {
Expand Down Expand Up @@ -94,7 +94,7 @@ public function it_can_refresh_on_an_event_while_preserving_the_scroll_position_
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_refresh_on_an_event_while_preserving_the_scroll_position_from_the_template()
{
$this->browse(function (Browser $browser) {
Expand Down Expand Up @@ -129,7 +129,7 @@ public function it_can_refresh_on_an_event_while_preserving_the_scroll_position_
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_waits_for_a_redirect_until_the_modal_is_closed()
{
$this->browse(function (Browser $browser) {
Expand All @@ -156,7 +156,7 @@ public function it_waits_for_a_redirect_until_the_modal_is_closed()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_waits_for_a_refresh_until_the_modal_is_closed()
{
$this->browse(function (Browser $browser) {
Expand Down Expand Up @@ -186,7 +186,7 @@ public function it_waits_for_a_refresh_until_the_modal_is_closed()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_show_the_event()
{
$this->browse(function (Browser $browser) {
Expand All @@ -210,7 +210,7 @@ public function it_can_show_the_event()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_show_a_toast()
{
$this->browse(function (Browser $browser) {
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Browser/FlashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class FlashTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_interact_with_flashed_data()
{
$this->browse(function (Browser $browser) {
Expand Down
14 changes: 7 additions & 7 deletions app/tests/Browser/Form/AttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class AttributesTest extends DuskTestCase
{
/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_guards_the_unused_eloquent_attributes_by_default()
{
$this->browse(function (Browser $browser) {
Expand All @@ -24,7 +24,7 @@ public function it_guards_the_unused_eloquent_attributes_by_default()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_guards_the_unused_fluent_attributes_by_default()
{
$this->browse(function (Browser $browser) {
Expand All @@ -41,7 +41,7 @@ public function it_guards_the_unused_fluent_attributes_by_default()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_unguard_by_attribute()
{
$this->browse(function (Browser $browser) {
Expand All @@ -51,7 +51,7 @@ public function it_can_unguard_by_attribute()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_can_unguard_by_default()
{
$this->browse(function (Browser $browser) {
Expand All @@ -61,7 +61,7 @@ public function it_can_unguard_by_default()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_fills_undefined_attributes_from_default_json_data()
{
$this->browse(function (Browser $browser) {
Expand All @@ -71,7 +71,7 @@ public function it_fills_undefined_attributes_from_default_json_data()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_fills_undefined_attributes_from_default_php_data()
{
$this->browse(function (Browser $browser) {
Expand All @@ -81,7 +81,7 @@ public function it_fills_undefined_attributes_from_default_php_data()
});
}

/** @test */
#[\PHPUnit\Framework\Attributes\Test]
public function it_handles_nested_numeric_keys()
{
$this->browse(function (Browser $browser) {
Expand Down
Loading