diff --git a/classes/ComicPressAdmin.inc b/classes/ComicPressAdmin.inc index 35a773a..4245dee 100644 --- a/classes/ComicPressAdmin.inc +++ b/classes/ComicPressAdmin.inc @@ -378,6 +378,10 @@ class ComicPressAdmin { } } + /** + * Update the zoom slider info. + * @param $info The browser input. + */ function handle_update_zoom_slider($info) { $this->is_ajax = true; diff --git a/test/ComicPressAdminTest.php b/test/ComicPressAdminTest.php index 6ee0a0a..bd1756e 100644 --- a/test/ComicPressAdminTest.php +++ b/test/ComicPressAdminTest.php @@ -260,25 +260,6 @@ class ComicPressAdminTest extends PHPUnit_Framework_TestCase { ), ); } - - /** - * @dataProvider providerTestHandleUpdateOverridePartial - */ - function testHandleUpdateOverridePartial($code, $action) { - $this->admin->comicpress = (object)array( - 'comicpress_options' => array( - 'override_partials' => array( - 'index' => '$hiss;' - ) - ) - ); - - $this->admin->handle_update_override_partial(array_merge(compact('code', 'action'), array('partial' => 'index'))); - - if ($action == "Update partial") { - $this->assertEquals($code, $this->admin->comicpress->comicpress_options['override_partials']['index']); - } - } } ?>