From 2c768ff5d42656ff9ad5c13507b5087bc60f2370 Mon Sep 17 00:00:00 2001 From: Mathias Palmqvist Date: Fri, 4 Jul 2025 21:43:17 +0200 Subject: [PATCH] Fixed failing test --- src/Cision.php | 2 +- tests/CisionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cision.php b/src/Cision.php index 3618344..bbdf5e9 100755 --- a/src/Cision.php +++ b/src/Cision.php @@ -15,7 +15,7 @@ class Cision /** * Constructor that accepts a slug identifier for the feed. */ - public function __construct(?string $slug = null) + public function __construct(string $slug) { $this->slug = $slug; } diff --git a/tests/CisionTest.php b/tests/CisionTest.php index da78677..c4f67aa 100644 --- a/tests/CisionTest.php +++ b/tests/CisionTest.php @@ -24,7 +24,7 @@ it('can fetch and parse full article content', function () { 'news.cision.com/*' => Http::response(file_get_contents(__DIR__.'/Fixtures/article.html')), ]); - $cision = new Cision; + $cision = new Cision('test-company'); $content = $cision->fetchContent('https://news.cision.com/se/example/r/test,c123456'); expect($content)->toHaveKeys(['header', 'published_at', 'content']);