Skip to content

Commit 38ffe9e

Browse files
Xefirthrillfall
authored andcommitted
Add a test that proove episode with action other than play is ignored when synced
1 parent e9d8002 commit 38ffe9e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/Integration/Controller/EpisodeActionControllerTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ public function testEpisodeActionCreateAction(): void
151151
"started": 15,
152152
"position": 120,
153153
"total": 500
154+
},
155+
{
156+
"podcast": "https://example.com/feed.rss",
157+
"episode": "https://example.com/files/s01e21.mp3",
158+
"guid": "s01e21-example-org",
159+
"action": "DELETE",
160+
"timestamp": "2009-12-12T09:00:00",
161+
"started": -1,
162+
"position": -1,
163+
"total": -1
154164
}
155165
]',
156166
true,
@@ -181,6 +191,7 @@ public function testEpisodeActionCreateAction(): void
181191
$episodeActionEntities = $mapper->findAll(0, $userId);
182192
/** @var EpisodeActionEntity $firstEntity */
183193
$firstEntity = $episodeActionEntities[0];
194+
$this->assertCount(1, $episodeActionEntities);
184195
$this->assertSame(
185196
"https://example.com/feed.rss",
186197
$firstEntity->getPodcast()

0 commit comments

Comments
 (0)