remove more partials stuff
This commit is contained in:
parent
365d85de7b
commit
b3192c3bbb
@ -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;
|
||||
|
||||
|
@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user