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();