Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c768ff5d4 | ||
|
|
36f60cbb3c | ||
|
|
356030865a | ||
|
|
4a1cd76cf5 | ||
|
|
2bf960028e |
No files matched your search
@@ -1,3 +1,17 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
All notable changes to `laravel-cision-feed` will be documented in this file.
|
All notable changes to `laravel-cision-feed` will be documented in this file.
|
||||||
|
|
||||||
|
## v2.0 - 2025-07-04
|
||||||
|
|
||||||
|
### What's Changed
|
||||||
|
|
||||||
|
* 2.0 by @mathiaspalmqvist in https://github.com/MattitjaAB/laravel-cision-feed/pull/1
|
||||||
|
* Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot in https://github.com/MattitjaAB/laravel-cision-feed/pull/2
|
||||||
|
|
||||||
|
### New Contributors
|
||||||
|
|
||||||
|
* @mathiaspalmqvist made their first contribution in https://github.com/MattitjaAB/laravel-cision-feed/pull/1
|
||||||
|
* @dependabot made their first contribution in https://github.com/MattitjaAB/laravel-cision-feed/pull/2
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/MattitjaAB/laravel-cision-feed/compare/1.0.2...v2.0
|
||||||
+2
-2
@@ -15,9 +15,9 @@ class Cision
|
|||||||
/**
|
/**
|
||||||
* Constructor that accepts a slug identifier for the feed.
|
* Constructor that accepts a slug identifier for the feed.
|
||||||
*/
|
*/
|
||||||
public function __construct(?string $slug = null)
|
public function __construct(string $slug)
|
||||||
{
|
{
|
||||||
$this->slug = $slug ?? env('LARAVEL_CISION_FEED_SLUG', '');
|
$this->slug = $slug;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function all(int $page = 1): array|false
|
public function all(int $page = 1): array|false
|
||||||
|
|||||||
@@ -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')),
|
'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');
|
$content = $cision->fetchContent('https://news.cision.com/se/example/r/test,c123456');
|
||||||
|
|
||||||
expect($content)->toHaveKeys(['header', 'published_at', 'content']);
|
expect($content)->toHaveKeys(['header', 'published_at', 'content']);
|
||||||
|
|||||||
Reference in new issue
Block a user