fix: complete CHRNX responsive edge states

This commit is contained in:
chrnx committed 2026-08-12 09:02:34 -05:00
1 parent 5073178492
commit 1e9386ac13
15 files changed
+384 -35

No files matched your search

+13
View File
@@ -87,6 +87,19 @@ class SettingsTest extends WP_UnitTestCase {
$this->assertSame( '', chrnx_get_subscribe_url() );
}
/** An unavailable setting cannot fall through to the current global page. */
public function test_subscribe_url_rejects_zero_even_with_a_global_page() {
$page = self::factory()->post->create_and_get(
array(
'post_type' => 'page',
'post_status' => 'publish',
)
);
$GLOBALS['post'] = $page;
update_option( 'chrnx_subscribe_page_id', 0 );
$this->assertSame( '', chrnx_get_subscribe_url() );
}
/** Field callback uses the core page dropdown and escaped description. */
public function test_subscribe_field_renders_a_core_page_dropdown() {
self::factory()->post->create(