Skip to content

Commit

Permalink
Removing test_largo_check_deprecated_widgets() function
Browse files Browse the repository at this point in the history
  • Loading branch information
rclations authored Oct 24, 2016
1 parent 180c80f commit 4aec494
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions tests/inc/test-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,34 +234,6 @@ function test_largo_instantiate_widget() {
update_option('sidebars_widgets', $widgets_backup);
}

function test_largo_check_deprecated_widgets() {
// Backup sidebar widgets
$widgets_backup = get_option('sidebars_widgets');

// Create the deprecated widgets
update_option('sidebars_widgets', array(
'article-bottom' => array (
// this should be instances of the widget that you want to check gets updated
0 => 'largo-footer-featured-2',
1 => 'largo-sidebar-featured-2',
), // largo_instantiate_widget uses article-bottom for all its widgets
));

largo_check_deprecated_widgets();

// Test that the requisite deprecated widgets actions have been added to the admin_notices hook
# Demo test, since in 0.5.5 and following all deprecated widgets have had their files removed.
#
#$return = has_action('admin_notices', 'largo_deprecated_sidebar_widget');
#$this->assertTrue(isset($return));
#unset($return);

// Cleanup
of_reset_options();
delete_option('sidebars_widgets');
update_option('sidebars_widgets', $widgets_backup);
}

# This is what a test function for a callback for a deprecated widget should look like
# Please do not remove this, as we may write deprecated widget test functions in the future.
#
Expand Down

0 comments on commit 4aec494

Please sign in to comment.