From a929fb8a29c1cad32b7e6d76959a2b236eb0c278 Mon Sep 17 00:00:00 2001 From: Tony Arcangelini Date: Wed, 6 May 2026 10:03:34 +0200 Subject: [PATCH 1/4] Podcast: scaffold empty package + module behind jetpack_podcast_untangle filter --- pnpm-lock.yaml | 2 + projects/packages/podcast/.gitattributes | 12 ++++ projects/packages/podcast/.gitignore | 4 ++ projects/packages/podcast/.phan/baseline.php | 17 +++++ projects/packages/podcast/.phan/config.php | 13 ++++ projects/packages/podcast/.phpcs.dir.xml | 24 +++++++ projects/packages/podcast/CHANGELOG.md | 6 ++ projects/packages/podcast/changelog/.gitkeep | 0 .../podcast/changelog/add-podcast-package | 4 ++ projects/packages/podcast/composer.json | 54 +++++++++++++++ projects/packages/podcast/package.json | 17 +++++ projects/packages/podcast/phpunit.11.xml.dist | 36 ++++++++++ projects/packages/podcast/phpunit.12.xml.dist | 36 ++++++++++ projects/packages/podcast/phpunit.8.xml.dist | 17 +++++ projects/packages/podcast/phpunit.9.xml.dist | 17 +++++ .../packages/podcast/src/class-podcast.php | 67 +++++++++++++++++++ .../packages/podcast/tests/.phpcs.dir.xml | 4 ++ .../podcast/tests/php/Podcast_Test.php | 36 ++++++++++ .../packages/podcast/tests/php/bootstrap.php | 12 ++++ .../jetpack/changelog/add-podcast-package | 4 ++ projects/plugins/jetpack/composer.json | 1 + projects/plugins/jetpack/composer.lock | 57 +++++++++++++++- projects/plugins/jetpack/load-jetpack.php | 4 ++ 23 files changed, 443 insertions(+), 1 deletion(-) create mode 100644 projects/packages/podcast/.gitattributes create mode 100644 projects/packages/podcast/.gitignore create mode 100644 projects/packages/podcast/.phan/baseline.php create mode 100644 projects/packages/podcast/.phan/config.php create mode 100644 projects/packages/podcast/.phpcs.dir.xml create mode 100644 projects/packages/podcast/CHANGELOG.md create mode 100644 projects/packages/podcast/changelog/.gitkeep create mode 100644 projects/packages/podcast/changelog/add-podcast-package create mode 100644 projects/packages/podcast/composer.json create mode 100644 projects/packages/podcast/package.json create mode 100644 projects/packages/podcast/phpunit.11.xml.dist create mode 100644 projects/packages/podcast/phpunit.12.xml.dist create mode 100644 projects/packages/podcast/phpunit.8.xml.dist create mode 100644 projects/packages/podcast/phpunit.9.xml.dist create mode 100644 projects/packages/podcast/src/class-podcast.php create mode 100644 projects/packages/podcast/tests/.phpcs.dir.xml create mode 100644 projects/packages/podcast/tests/php/Podcast_Test.php create mode 100644 projects/packages/podcast/tests/php/bootstrap.php create mode 100644 projects/plugins/jetpack/changelog/add-podcast-package diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ba1e667b449d..d22383b48e89 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3554,6 +3554,8 @@ importers: specifier: 6.0.1 version: 6.0.1(webpack@5.105.2) + projects/packages/podcast: {} + projects/packages/post-list: dependencies: '@wordpress/i18n': diff --git a/projects/packages/podcast/.gitattributes b/projects/packages/podcast/.gitattributes new file mode 100644 index 000000000000..b3028ba45f00 --- /dev/null +++ b/projects/packages/podcast/.gitattributes @@ -0,0 +1,12 @@ +# Files not needed to be distributed in the package. +.gitattributes export-ignore +.github/ export-ignore +package.json export-ignore + +# Files to exclude from the mirror repo, but included in the monorepo. +# Remember to end all directories with `/**` to properly tag every file. +.gitignore production-exclude +changelog/** production-exclude +.phpcs.dir.xml production-exclude +tests/** production-exclude +.phpcsignore production-exclude diff --git a/projects/packages/podcast/.gitignore b/projects/packages/podcast/.gitignore new file mode 100644 index 000000000000..8424444d7508 --- /dev/null +++ b/projects/packages/podcast/.gitignore @@ -0,0 +1,4 @@ +vendor/ +node_modules/ +.cache/ +composer.lock diff --git a/projects/packages/podcast/.phan/baseline.php b/projects/packages/podcast/.phan/baseline.php new file mode 100644 index 000000000000..3df50068147a --- /dev/null +++ b/projects/packages/podcast/.phan/baseline.php @@ -0,0 +1,17 @@ + [ + ], + // 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed. + // (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases) +]; diff --git a/projects/packages/podcast/.phan/config.php b/projects/packages/podcast/.phan/config.php new file mode 100644 index 000000000000..86a515290b91 --- /dev/null +++ b/projects/packages/podcast/.phan/config.php @@ -0,0 +1,13 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projects/packages/podcast/CHANGELOG.md b/projects/packages/podcast/CHANGELOG.md new file mode 100644 index 000000000000..03a962f457f6 --- /dev/null +++ b/projects/packages/podcast/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). diff --git a/projects/packages/podcast/changelog/.gitkeep b/projects/packages/podcast/changelog/.gitkeep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/projects/packages/podcast/changelog/add-podcast-package b/projects/packages/podcast/changelog/add-podcast-package new file mode 100644 index 000000000000..c8cda5a6d4a9 --- /dev/null +++ b/projects/packages/podcast/changelog/add-podcast-package @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Initial scaffolding for the Jetpack Podcast package. Loads on Simple and Atomic only, gated behind the `jetpack_podcast_untangle` filter (default off) so it stays inert while the legacy podcasting code keeps running. diff --git a/projects/packages/podcast/composer.json b/projects/packages/podcast/composer.json new file mode 100644 index 000000000000..40f7df0dcd38 --- /dev/null +++ b/projects/packages/podcast/composer.json @@ -0,0 +1,54 @@ +{ + "name": "automattic/jetpack-podcast", + "description": "Jetpack Podcast functionality (Simple and Atomic only).", + "type": "jetpack-library", + "license": "GPL-2.0-or-later", + "require": { + "php": ">=7.2", + "automattic/jetpack-status": "@dev" + }, + "require-dev": { + "yoast/phpunit-polyfills": "^4.0.0", + "automattic/jetpack-test-environment": "@dev", + "automattic/phpunit-select-config": "@dev" + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "scripts": { + "phpunit": [ + "phpunit-select-config phpunit.#.xml.dist --colors=always" + ], + "test-php": [ + "@composer phpunit" + ] + }, + "repositories": [ + { + "type": "path", + "url": "../../packages/*", + "options": { + "monorepo": true + } + } + ], + "minimum-stability": "dev", + "prefer-stable": true, + "extra": { + "autorelease": true, + "autotagger": true, + "mirror-repo": "Automattic/jetpack-podcast", + "branch-alias": { + "dev-trunk": "0.1.x-dev" + }, + "textdomain": "jetpack-podcast", + "version-constants": { + "::PACKAGE_VERSION": "src/class-podcast.php" + }, + "changelogger": { + "link-template": "https://github.com/Automattic/jetpack-podcast/compare/v${old}...v${new}" + } + } +} diff --git a/projects/packages/podcast/package.json b/projects/packages/podcast/package.json new file mode 100644 index 000000000000..51bdce16ea03 --- /dev/null +++ b/projects/packages/podcast/package.json @@ -0,0 +1,17 @@ +{ + "name": "@automattic/jetpack-podcast", + "version": "0.1.0-alpha", + "private": true, + "description": "Jetpack Podcast functionality (Simple and Atomic only).", + "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/podcast/#readme", + "bugs": { + "url": "https://github.com/Automattic/jetpack/labels/[Package] Podcast" + }, + "repository": { + "type": "git", + "url": "https://github.com/Automattic/jetpack.git", + "directory": "projects/packages/podcast" + }, + "license": "GPL-2.0-or-later", + "author": "Automattic" +} diff --git a/projects/packages/podcast/phpunit.11.xml.dist b/projects/packages/podcast/phpunit.11.xml.dist new file mode 100644 index 000000000000..f7418373829b --- /dev/null +++ b/projects/packages/podcast/phpunit.11.xml.dist @@ -0,0 +1,36 @@ + + + + + tests/php + + + + + + + + src + + + + + diff --git a/projects/packages/podcast/phpunit.12.xml.dist b/projects/packages/podcast/phpunit.12.xml.dist new file mode 100644 index 000000000000..f7418373829b --- /dev/null +++ b/projects/packages/podcast/phpunit.12.xml.dist @@ -0,0 +1,36 @@ + + + + + tests/php + + + + + + + + src + + + + + diff --git a/projects/packages/podcast/phpunit.8.xml.dist b/projects/packages/podcast/phpunit.8.xml.dist new file mode 100644 index 000000000000..3965963c485e --- /dev/null +++ b/projects/packages/podcast/phpunit.8.xml.dist @@ -0,0 +1,17 @@ + + + + + tests/php + + + diff --git a/projects/packages/podcast/phpunit.9.xml.dist b/projects/packages/podcast/phpunit.9.xml.dist new file mode 100644 index 000000000000..3965963c485e --- /dev/null +++ b/projects/packages/podcast/phpunit.9.xml.dist @@ -0,0 +1,17 @@ + + + + + tests/php + + + diff --git a/projects/packages/podcast/src/class-podcast.php b/projects/packages/podcast/src/class-podcast.php new file mode 100644 index 000000000000..528ef1dc3f4c --- /dev/null +++ b/projects/packages/podcast/src/class-podcast.php @@ -0,0 +1,67 @@ +is_wpcom_simple() && ! $host->is_woa_site() ) { + return; + } + + /** + * Master switch for the Podcast untangle. + * + * While the legacy podcasting code is still the source of truth on + * Simple and Atomic sites, this filter stays false. Subsequent PRs + * layer the new wp-admin SPA, REST integration, and feed + * customization on top of this gate. + * + * @since 0.1.0 + * + * @param bool $enabled Whether to enable the new Podcast package. + */ + if ( ! apply_filters( 'jetpack_podcast_untangle', false ) ) { + return; + } + + // Subsequent PRs in the untangle train wire the new package up here. + } +} diff --git a/projects/packages/podcast/tests/.phpcs.dir.xml b/projects/packages/podcast/tests/.phpcs.dir.xml new file mode 100644 index 000000000000..46951fe77b37 --- /dev/null +++ b/projects/packages/podcast/tests/.phpcs.dir.xml @@ -0,0 +1,4 @@ + + + + diff --git a/projects/packages/podcast/tests/php/Podcast_Test.php b/projects/packages/podcast/tests/php/Podcast_Test.php new file mode 100644 index 000000000000..bdfc34356c9f --- /dev/null +++ b/projects/packages/podcast/tests/php/Podcast_Test.php @@ -0,0 +1,36 @@ +expectNotToPerformAssertions(); + } + + /** + * `PACKAGE_VERSION` is exposed for the changelogger version-constants + * mapping declared in `composer.json`. + */ + public function test_package_version_constant_is_defined() { + $this->assertNotEmpty( Podcast::PACKAGE_VERSION ); + } +} diff --git a/projects/packages/podcast/tests/php/bootstrap.php b/projects/packages/podcast/tests/php/bootstrap.php new file mode 100644 index 000000000000..fe7ccf4c45ad --- /dev/null +++ b/projects/packages/podcast/tests/php/bootstrap.php @@ -0,0 +1,12 @@ +=7.2" + }, + "require-dev": { + "automattic/jetpack-test-environment": "@dev", + "automattic/phpunit-select-config": "@dev", + "yoast/phpunit-polyfills": "^4.0.0" + }, + "type": "jetpack-library", + "extra": { + "autorelease": true, + "autotagger": true, + "mirror-repo": "Automattic/jetpack-podcast", + "branch-alias": { + "dev-trunk": "0.1.x-dev" + }, + "textdomain": "jetpack-podcast", + "version-constants": { + "::PACKAGE_VERSION": "src/class-podcast.php" + }, + "changelogger": { + "link-template": "https://github.com/Automattic/jetpack-podcast/compare/v${old}...v${new}" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "scripts": { + "phpunit": [ + "phpunit-select-config phpunit.#.xml.dist --colors=always" + ], + "test-php": [ + "@composer phpunit" + ] + }, + "license": [ + "GPL-2.0-or-later" + ], + "description": "Jetpack Podcast functionality (Simple and Atomic only).", + "transport-options": { + "relative": true + } + }, { "name": "automattic/jetpack-post-list", "version": "dev-trunk", @@ -5855,6 +5909,7 @@ "automattic/jetpack-newsletter": 20, "automattic/jetpack-paypal-payments": 20, "automattic/jetpack-plugins-installer": 20, + "automattic/jetpack-podcast": 20, "automattic/jetpack-post-list": 20, "automattic/jetpack-post-media": 20, "automattic/jetpack-publicize": 20, diff --git a/projects/plugins/jetpack/load-jetpack.php b/projects/plugins/jetpack/load-jetpack.php index 57cf7abfbebc..86d9617ef733 100644 --- a/projects/plugins/jetpack/load-jetpack.php +++ b/projects/plugins/jetpack/load-jetpack.php @@ -71,6 +71,10 @@ function jetpack_should_use_minified_assets() { \Automattic\Jetpack\Plugin\Jetpack_Script_Data::configure(); } +// Initialize the Podcast package (Simple + Atomic only, gated behind the +// `jetpack_podcast_untangle` filter — see Automattic\Jetpack\Podcast\Podcast). +\Automattic\Jetpack\Podcast\Podcast::init(); + // Play nice with https://wp-cli.org/. if ( defined( 'WP_CLI' ) && WP_CLI ) { require_once JETPACK__PLUGIN_DIR . 'class.jetpack-cli.php'; From d547a51a0255d7ca007ed515a21ec044e94e6231 Mon Sep 17 00:00:00 2001 From: Tony Arcangelini Date: Wed, 6 May 2026 10:42:50 +0200 Subject: [PATCH 2/4] Podcast: drop empty phan baseline --- projects/packages/podcast/.phan/baseline.php | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 projects/packages/podcast/.phan/baseline.php diff --git a/projects/packages/podcast/.phan/baseline.php b/projects/packages/podcast/.phan/baseline.php deleted file mode 100644 index 3df50068147a..000000000000 --- a/projects/packages/podcast/.phan/baseline.php +++ /dev/null @@ -1,17 +0,0 @@ - [ - ], - // 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed. - // (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases) -]; From 8500ac63b784ceded2f424b7a2ef9f4699747583 Mon Sep 17 00:00:00 2001 From: Tony Arcangelini Date: Wed, 6 May 2026 10:51:06 +0200 Subject: [PATCH 3/4] =?UTF-8?q?Podcast:=20align=20scaffold=20with=20Scan?= =?UTF-8?q?=20=E2=80=94=20README/AGENTS/eslint,=20late=5Finitialization,?= =?UTF-8?q?=20autoloader=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/packages/podcast/AGENTS.md | 26 +++++++++++++++++++++ projects/packages/podcast/README.md | 5 ++++ projects/packages/podcast/composer.json | 12 ++++++++++ projects/packages/podcast/eslint.config.mjs | 3 +++ projects/plugins/jetpack/class.jetpack.php | 2 ++ projects/plugins/jetpack/composer.lock | 7 +++++- projects/plugins/jetpack/load-jetpack.php | 4 ---- 7 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 projects/packages/podcast/AGENTS.md create mode 100644 projects/packages/podcast/README.md create mode 100644 projects/packages/podcast/eslint.config.mjs diff --git a/projects/packages/podcast/AGENTS.md b/projects/packages/podcast/AGENTS.md new file mode 100644 index 000000000000..dc305d585cc6 --- /dev/null +++ b/projects/packages/podcast/AGENTS.md @@ -0,0 +1,26 @@ +# Podcast + +The wp-admin Podcast experience for the Jetpack plugin. Currently an +empty package gated behind the `jetpack_podcast_untangle` filter +(default off); follow-up PRs in the untangle train layer the SPA, REST +settings, and RSS feed customization on top of this gate. + +## UI primitives + +When adding React UI in this package, prefer the WordPress Design System +packages in this order: + +1. **`@wordpress/ui`** — foundational primitives. Check each component's + Storybook "Status" badge (anything other than "stable" is still in + flux); avoid experimental APIs here. +2. **`@wordpress/components`** — general-purpose legacy library. + Predates the design system. Use only when `@wordpress/ui` doesn't + have a stable equivalent, and still check Status in Storybook. +3. **`@wordpress/dataviews`** — higher-level data presentation (tables, + lists, grids). +4. **`@wordpress/admin-ui`** — page layout primitives, accessed via + `AdminPage` from `@automattic/jetpack-components` (which wraps + admin-ui's `Page`). + +Rationale: WordPress is moving new work to `@wordpress/ui`; +`@wordpress/components` is being kept as a legacy fallback. diff --git a/projects/packages/podcast/README.md b/projects/packages/podcast/README.md new file mode 100644 index 000000000000..f5d95aaa308a --- /dev/null +++ b/projects/packages/podcast/README.md @@ -0,0 +1,5 @@ +# Podcast for Jetpack + +Hosts the wp-admin Podcast experience for the Jetpack plugin (Simple and Atomic only). + +The package is gated behind the `jetpack_podcast_untangle` filter (default off). Until the filter is flipped on, the package contributes nothing — the legacy podcasting code (`Automattic_Podcasting` in the wpcom mu-plugin and the `at-pressable-podcasting` bridge plugin) keeps running unchanged. Subsequent PRs in the untangle train layer the new wp-admin SPA, REST integration, and feed customization on top of this gate. diff --git a/projects/packages/podcast/composer.json b/projects/packages/podcast/composer.json index 40f7df0dcd38..3733088ea8dd 100644 --- a/projects/packages/podcast/composer.json +++ b/projects/packages/podcast/composer.json @@ -5,6 +5,8 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=7.2", + "automattic/jetpack-autoloader": "@dev", + "automattic/jetpack-composer-plugin": "@dev", "automattic/jetpack-status": "@dev" }, "require-dev": { @@ -12,6 +14,9 @@ "automattic/jetpack-test-environment": "@dev", "automattic/phpunit-select-config": "@dev" }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." + }, "autoload": { "classmap": [ "src/" @@ -50,5 +55,12 @@ "changelogger": { "link-template": "https://github.com/Automattic/jetpack-podcast/compare/v${old}...v${new}" } + }, + "config": { + "allow-plugins": { + "automattic/jetpack-autoloader": true, + "automattic/jetpack-composer-plugin": true, + "roots/wordpress-core-installer": true + } } } diff --git a/projects/packages/podcast/eslint.config.mjs b/projects/packages/podcast/eslint.config.mjs new file mode 100644 index 000000000000..afb1e892b4d7 --- /dev/null +++ b/projects/packages/podcast/eslint.config.mjs @@ -0,0 +1,3 @@ +import { makeBaseConfig } from 'jetpack-js-tools/eslintrc/base.mjs'; + +export default makeBaseConfig( import.meta.url ); diff --git a/projects/plugins/jetpack/class.jetpack.php b/projects/plugins/jetpack/class.jetpack.php index 72eaa5ae5d64..e1cff5aedfca 100644 --- a/projects/plugins/jetpack/class.jetpack.php +++ b/projects/plugins/jetpack/class.jetpack.php @@ -32,6 +32,7 @@ use Automattic\Jetpack\Paths; use Automattic\Jetpack\Plugin\Deprecate; use Automattic\Jetpack\Plugin\Tracking as Plugin_Tracking; +use Automattic\Jetpack\Podcast\Podcast as Podcast_Init; use Automattic\Jetpack\Redirect; use Automattic\Jetpack\Scan_Page\Jetpack_Scan as Scan_Page_Init; use Automattic\Jetpack\Status; @@ -873,6 +874,7 @@ public function late_initialization() { My_Jetpack_Initializer::init(); Activity_Log_Init::initialize(); Scan_Page_Init::initialize(); + Podcast_Init::init(); // Initialize Boost Speed Score new Speed_Score( array(), 'jetpack-dashboard' ); diff --git a/projects/plugins/jetpack/composer.lock b/projects/plugins/jetpack/composer.lock index 83e12b050ec3..2edc6a4685e6 100644 --- a/projects/plugins/jetpack/composer.lock +++ b/projects/plugins/jetpack/composer.lock @@ -2574,9 +2574,11 @@ "dist": { "type": "path", "url": "../../packages/podcast", - "reference": "acaddca67e3e73d705207800e2ca4172ad7d88a9" + "reference": "a576a9d13718887d7d506acd895bd1ade5b7eacd" }, "require": { + "automattic/jetpack-autoloader": "@dev", + "automattic/jetpack-composer-plugin": "@dev", "automattic/jetpack-status": "@dev", "php": ">=7.2" }, @@ -2585,6 +2587,9 @@ "automattic/phpunit-select-config": "@dev", "yoast/phpunit-polyfills": "^4.0.0" }, + "suggest": { + "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package." + }, "type": "jetpack-library", "extra": { "autorelease": true, diff --git a/projects/plugins/jetpack/load-jetpack.php b/projects/plugins/jetpack/load-jetpack.php index 86d9617ef733..57cf7abfbebc 100644 --- a/projects/plugins/jetpack/load-jetpack.php +++ b/projects/plugins/jetpack/load-jetpack.php @@ -71,10 +71,6 @@ function jetpack_should_use_minified_assets() { \Automattic\Jetpack\Plugin\Jetpack_Script_Data::configure(); } -// Initialize the Podcast package (Simple + Atomic only, gated behind the -// `jetpack_podcast_untangle` filter — see Automattic\Jetpack\Podcast\Podcast). -\Automattic\Jetpack\Podcast\Podcast::init(); - // Play nice with https://wp-cli.org/. if ( defined( 'WP_CLI' ) && WP_CLI ) { require_once JETPACK__PLUGIN_DIR . 'class.jetpack-cli.php'; From c6e5ae57c53787a35e0ef17ccba76235b356e4a6 Mon Sep 17 00:00:00 2001 From: Tony Arcangelini Date: Wed, 6 May 2026 12:08:35 +0200 Subject: [PATCH 4/4] Podcast: clarify init test docblock; broaden composer repositories url --- projects/packages/podcast/composer.json | 2 +- projects/packages/podcast/tests/php/Podcast_Test.php | 8 +++++--- projects/plugins/jetpack/composer.lock | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/projects/packages/podcast/composer.json b/projects/packages/podcast/composer.json index 3733088ea8dd..9b758835a39a 100644 --- a/projects/packages/podcast/composer.json +++ b/projects/packages/podcast/composer.json @@ -33,7 +33,7 @@ "repositories": [ { "type": "path", - "url": "../../packages/*", + "url": "../*", "options": { "monorepo": true } diff --git a/projects/packages/podcast/tests/php/Podcast_Test.php b/projects/packages/podcast/tests/php/Podcast_Test.php index bdfc34356c9f..bc1de52fa075 100644 --- a/projects/packages/podcast/tests/php/Podcast_Test.php +++ b/projects/packages/podcast/tests/php/Podcast_Test.php @@ -18,10 +18,12 @@ class Podcast_Test extends BaseTestCase { /** - * `init()` is a no-op when the `jetpack_podcast_untangle` filter is off - * (the default). Running it should not raise or leave any side effects. + * `init()` should run cleanly on every host. In test environments (and on + * any non-Simple/non-Atomic site in production), the host gate + * short-circuits before the filter is evaluated, so this exercises the + * most common no-op path. */ - public function test_init_is_a_noop_when_filter_is_off() { + public function test_init_returns_cleanly_on_non_wpcom_host() { Podcast::init(); $this->expectNotToPerformAssertions(); } diff --git a/projects/plugins/jetpack/composer.lock b/projects/plugins/jetpack/composer.lock index 2edc6a4685e6..5c4f8cccc713 100644 --- a/projects/plugins/jetpack/composer.lock +++ b/projects/plugins/jetpack/composer.lock @@ -2574,7 +2574,7 @@ "dist": { "type": "path", "url": "../../packages/podcast", - "reference": "a576a9d13718887d7d506acd895bd1ade5b7eacd" + "reference": "bea82a1c466885b59bed270e55dbd6f6989121a5" }, "require": { "automattic/jetpack-autoloader": "@dev",