fix: complete CHRNX responsive edge states
This commit is contained in:
15 files changed
+384
-35
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user