From cbb33fa269bb074f1737f8f9a0004f5ade984217 Mon Sep 17 00:00:00 2001 From: Ben Bjurstrom Date: Wed, 4 Sep 2024 09:54:37 -0700 Subject: [PATCH] Add test --- tests/Pest/ManagerTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Pest/ManagerTest.php b/tests/Pest/ManagerTest.php index aa9f25b..9c700f4 100644 --- a/tests/Pest/ManagerTest.php +++ b/tests/Pest/ManagerTest.php @@ -1,6 +1,8 @@ set('foo', 'bar'))->toBe('bar'); @@ -118,6 +120,16 @@ test('canonical url can be read from request', function () { ->toContain(''); }); +test('canonical url accepts origin', function () { + $this->get('/testing/5'); + + seo()->withUrl('https://foo.com'); + + expect(meta()) + ->toContain('') + ->toContain(''); +}); + test('canonical url can be changed', function () { seo()->withUrl();