Skip to content

Commit

Permalink
Fix streamable demo url
Browse files Browse the repository at this point in the history
  • Loading branch information
chojnicki authored May 23, 2024
1 parent da53528 commit 067f5e1
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions tests/VideoPlatformsParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function testGetVimeoUrlOnApiDisabled()

public function testGetStreamableUrlOnApiDisabled()
{
$url = 'https://streamable.com/1625tt';
$url = 'https://vimeo.com/126100721';
$params = [
'streamable_api_disabled' => true,
];
Expand All @@ -136,7 +136,7 @@ public function testGetStreamableUrlOnApiDisabled()

public function testGetStreamableUrlOnApiEnabled()
{
$url = 'https://streamable.com/1625tt';
$url = 'https://streamable.com/idw7xq';
$params = [];
$videoPlatformsParser = new VideoPlatformsParser($params);
$result = $videoPlatformsParser->get($url);
Expand All @@ -151,22 +151,6 @@ public function testGetStreamableUrlOnApiEnabled()
$this->assertArrayHasKey('api', $result);
}

public function testGetLiveLeakUrl()
{
$url = 'https://www.liveleak.com/view?t=stuEM_1605476833';
$params = [];
$videoPlatformsParser = new VideoPlatformsParser($params);
$result = $videoPlatformsParser->get($url);
$result = array_filter($result);

$this->assertArrayHasKey('id', $result);
$this->assertArrayHasKey('platform', $result);
$this->assertArrayHasKey('title', $result);
$this->assertArrayHasKey('description', $result);
$this->assertArrayHasKey('thumbnail', $result);
$this->assertArrayHasKey('tags', $result);
}

public function testGetFacebookUrl()
{
$url = 'https://www.facebook.com/thatofficeguyuk/videos/363207927987366';
Expand Down

0 comments on commit 067f5e1

Please sign in to comment.