Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Nov 13, 2024
1 parent 3e9c856 commit 4c8d596
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,8 @@ private function perform_network_enable_disable_assertions( $test_themes, $event
public function test_install_edit_delete_theme_sync() {
echo 'WPCOMSH_PREMIUM_THEMES_PATH:';
print_r( scandir( WPCOMSH_PREMIUM_THEMES_PATH ) );
echo 'WPCOMSH_PUB_THEMES_PATH:';
print_r( scandir( WPCOMSH_PUB_THEMES_PATH ) );
$theme_slug = 'dossier';
$theme_name = 'Dossier';
$theme_slug = 'itek';
$theme_name = 'Itek';

delete_theme( $theme_slug ); // Ensure theme is not lingering on file system
$this->server_event_storage->reset();
Expand All @@ -265,6 +263,8 @@ public function test_install_edit_delete_theme_sync() {
$this->install_theme( $theme_slug );
$this->sender->do_sync();

echo 'WPCOMSH_PREMIUM_THEMES_PATH:';
print_r( scandir( WPCOMSH_PREMIUM_THEMES_PATH ) );
$event_data = $this->server_event_storage->get_most_recent_event( 'jetpack_installed_theme' );

$this->assertEquals( $event_data->args[0], $theme_slug );
Expand Down Expand Up @@ -299,7 +299,7 @@ public function test_install_edit_delete_theme_sync() {

$event_data = $this->server_event_storage->get_most_recent_event( 'jetpack_deleted_theme' );

$this->assertEquals( 'dossier', $event_data->args[0] );
$this->assertEquals( 'itek', $event_data->args[0] );
}

public function test_update_themes_sync() {
Expand Down

0 comments on commit 4c8d596

Please sign in to comment.