Skip to content

Commit

Permalink
Adapted callables test for wpcomsh.
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor committed Aug 8, 2024
1 parent 428084a commit 0c5a8e9
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,9 @@ public function test_sync_limited_set_of_callables_if_wp_cli() {
}

public function test_site_icon_url_returns_false_when_no_site_icon() {
if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) {
remove_all_filters( 'get_site_icon_url' );
}
delete_option( 'jetpack_site_icon_url' );
$this->sender->do_sync();
$this->assertFalse( $this->server_replica_storage->get_callable( 'site_icon_url' ) );
Expand All @@ -629,6 +632,9 @@ public function test_site_icon_url_returns_core_site_icon_url_when_set() {
}

public function test_site_icon_url_fallback_to_jetpack_site_icon_url() {
if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) {
remove_all_filters( 'get_site_icon_url' );
}
delete_option( 'site_icon' );
update_option( 'jetpack_site_icon_url', 'http://website.com/wp-content/uploads/2016/09/jetpack_site_icon.png' );
$this->sender->do_sync();
Expand Down Expand Up @@ -911,7 +917,10 @@ public function test_plugin_action_links_get_synced() {
),
);

if ( ! is_multisite() ) {
if (
! is_multisite()
&& ( ! defined( 'IS_ATOMIC' ) && ! IS_ATOMIC )
) {
$expected_array['jetpack/jetpack.php']['My Jetpack'] = admin_url( 'admin.php?page=my-jetpack' );
}

Expand Down

0 comments on commit 0c5a8e9

Please sign in to comment.