From 0568284968baa629cb6652866ee8467b3e442088 Mon Sep 17 00:00:00 2001 From: "H. C. Kruse" Date: Thu, 9 Nov 2023 10:08:15 +0100 Subject: [PATCH] nit: Fix bandcamp test id --- includes/EmbedVideo.php | 2 +- tests/phpunit/EmbedService/BandcampTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/EmbedVideo.php b/includes/EmbedVideo.php index 05aa843..77c75d7 100644 --- a/includes/EmbedVideo.php +++ b/includes/EmbedVideo.php @@ -6,12 +6,12 @@ use Config; use ConfigException; +use Html; use InvalidArgumentException; use MediaWiki\Extension\EmbedVideo\EmbedService\AbstractEmbedService; use MediaWiki\Extension\EmbedVideo\EmbedService\EmbedHtmlFormatter; use MediaWiki\Extension\EmbedVideo\EmbedService\EmbedServiceFactory; use MediaWiki\Extension\EmbedVideo\EmbedService\OEmbedServiceInterface; -use MediaWiki\Html\Html; use MediaWiki\MediaWikiServices; use Parser; use PPFrame; diff --git a/tests/phpunit/EmbedService/BandcampTest.php b/tests/phpunit/EmbedService/BandcampTest.php index 592bdb6..d6b5fa1 100644 --- a/tests/phpunit/EmbedService/BandcampTest.php +++ b/tests/phpunit/EmbedService/BandcampTest.php @@ -21,7 +21,7 @@ class BandcampTest extends MediaWikiIntegrationTestCase { * A valid ID * @var string */ - private string $validId = '826968881'; + private string $validId = '1003592798'; /** * An invalid id @@ -40,7 +40,7 @@ class BandcampTest extends MediaWikiIntegrationTestCase { * An invalid url * @var string */ - private string $invalidUrlId = 'https://bandcamp.com/EmbeddedPlayer/song=1003592798/'; + private string $invalidUrlId = 'https://bandcamp.com/EmbeddedPlayer/song=Foo/'; /** * @covers \MediaWiki\Extension\EmbedVideo\EmbedService\AbstractEmbedService::parseVideoID