aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2023-09-25 21:18:48 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-25 21:18:48 +0200
commitcd30c25b08dc5ecd048e54c8abbbecd72309ab5e (patch)
tree5defffb410945e3c4dcff8c2b3b410034588aaba /tests
parente1b911fc1f3416d49c5ad5cc68587f64ab8890eb (diff)
downloadrss-bridge-cd30c25b08dc5ecd048e54c8abbbecd72309ab5e.tar.gz
rss-bridge-cd30c25b08dc5ecd048e54c8abbbecd72309ab5e.tar.zst
rss-bridge-cd30c25b08dc5ecd048e54c8abbbecd72309ab5e.zip
refactor (#3708)
Diffstat (limited to 'tests')
-rw-r--r--tests/Formats/BaseFormatTest.php2
-rw-r--r--tests/Formats/FormatImplementationTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Formats/BaseFormatTest.php b/tests/Formats/BaseFormatTest.php
index 30ce1063..71e196f0 100644
--- a/tests/Formats/BaseFormatTest.php
+++ b/tests/Formats/BaseFormatTest.php
@@ -39,7 +39,7 @@ abstract class BaseFormatTest extends TestCase
$items = [];
foreach ($data['items'] as $item) {
- $items[] = new \FeedItem($item);
+ $items[] = \FeedItem::fromArray($item);
}
return (object)[
diff --git a/tests/Formats/FormatImplementationTest.php b/tests/Formats/FormatImplementationTest.php
index 55c6335f..03ac6d51 100644
--- a/tests/Formats/FormatImplementationTest.php
+++ b/tests/Formats/FormatImplementationTest.php
@@ -24,7 +24,7 @@ class FormatImplementationTest extends TestCase
public function testClassType($path)
{
$this->setFormat($path);
- $this->assertInstanceOf(FormatInterface::class, $this->obj);
+ $this->assertInstanceOf(FormatAbstract::class, $this->obj);
}
public function dataFormatsProvider()