From 9b2d46a120dde26e25bb4e25c22e7d1f1931ee0e Mon Sep 17 00:00:00 2001 From: Tim Van Dijck Date: Mon, 29 Apr 2024 12:34:28 +0200 Subject: [PATCH] Avoid duplicate method name. --- .../LegacyLivewireRequestContextProviderTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ContextProviders/LegacyLivewireRequestContextProviderTest.php b/tests/ContextProviders/LegacyLivewireRequestContextProviderTest.php index 335ea9f..8c1c958 100644 --- a/tests/ContextProviders/LegacyLivewireRequestContextProviderTest.php +++ b/tests/ContextProviders/LegacyLivewireRequestContextProviderTest.php @@ -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', ]); @@ -27,7 +27,7 @@ $this->livewireManager->fakeAliases[$alias] = $class; - $context = createRequestContext([ + $context = createLegacyRequestContext([ 'path' => 'http://localhost/referred', 'method' => 'GET', 'id' => $id = uniqid(), @@ -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(), @@ -57,7 +57,7 @@ }); it('removes ids from update payloads', function () { - $context = createRequestContext([ + $context = createLegacyRequestContext([ 'path' => 'http://localhost/referred', 'method' => 'GET', 'id' => $id = uniqid(), @@ -81,7 +81,7 @@ }); it('combines data into one payload', function () { - $context = createRequestContext([ + $context = createLegacyRequestContext([ 'path' => 'http://localhost/referred', 'method' => 'GET', 'id' => uniqid(), @@ -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;