Skip to content

Commit

Permalink
Avoid duplicate method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck committed Apr 29, 2024
1 parent f046d71 commit 9b2d46a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
})->skip(LIVEWIRE_VERSION_3, 'Only test Livewire 2.');

it('returns the referer url and method', function () {
$context = createRequestContext([
$context = createLegacyRequestContext([
'path' => 'referred',
'method' => 'GET',
]);
Expand All @@ -27,7 +27,7 @@

$this->livewireManager->fakeAliases[$alias] = $class;

$context = createRequestContext([
$context = createLegacyRequestContext([
'path' => 'http://localhost/referred',
'method' => 'GET',
'id' => $id = uniqid(),
Expand All @@ -42,7 +42,7 @@
});

it('returns livewire component information when it does not exist', function () {
$context = createRequestContext([
$context = createLegacyRequestContext([
'path' => 'http://localhost/referred',
'method' => 'GET',
'id' => $id = uniqid(),
Expand All @@ -57,7 +57,7 @@
});

it('removes ids from update payloads', function () {
$context = createRequestContext([
$context = createLegacyRequestContext([
'path' => 'http://localhost/referred',
'method' => 'GET',
'id' => $id = uniqid(),
Expand All @@ -81,7 +81,7 @@
});

it('combines data into one payload', function () {
$context = createRequestContext([
$context = createLegacyRequestContext([
'path' => 'http://localhost/referred',
'method' => 'GET',
'id' => uniqid(),
Expand Down Expand Up @@ -154,7 +154,7 @@
});

// Helpers
function createRequestContext(array $fingerprint, array $updates = [], array $serverMemo = []): LaravelLivewireRequestContextProvider
function createLegacyRequestContext(array $fingerprint, array $updates = [], array $serverMemo = []): LaravelLivewireRequestContextProvider
{
$providedRequest = null;

Expand Down

0 comments on commit 9b2d46a

Please sign in to comment.