Skip to content

Commit 0711d02

Browse files
committed
Update PHP tests
1 parent 1261d86 commit 0711d02

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

plugin/tests/phpunit/php/class-test-admin.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function test_construct() {
6868
$this->assertEquals( 10, has_action( 'switch_theme', [ $this->plugin->admin, 'switch_theme_material' ] ) );
6969
$this->assertEquals( 10, has_action( 'admin_notices', [ $this->plugin->admin, 'theme_not_installed_notice' ] ) );
7070
$this->assertEquals( 9, has_action( 'admin_notices', [ $this->plugin->admin, 'plugin_activated_notice' ] ) );
71-
$this->assertEquals( 10, has_filter( 'auto_update_plugin', [ $this->plugin->admin, 'enable_plugin_auto_update' ] ) );
72-
$this->assertEquals( 10, has_filter( 'auto_update_theme', [ $this->plugin->admin, 'enable_theme_auto_update' ] ) );
7371
}
7472

7573

@@ -274,38 +272,6 @@ public function test_plugin_activated_notice() {
274272
$this->assertContains( '<div class="notice notice-info is-dismissible material-notice-container">', $output );
275273
}
276274

277-
/**
278-
* Test for enable_plugin_auto_update() method.
279-
*
280-
* @see Plugin::enable_plugin_auto_update()
281-
*/
282-
public function test_enable_plugin_auto_update() {
283-
$obj = new \stdClass();
284-
$obj->slug = 'generic-plugin';
285-
286-
$this->assertEquals( null, $this->admin->enable_plugin_auto_update( null, $obj ) );
287-
$this->assertEquals( false, $this->admin->enable_plugin_auto_update( false, $obj ) );
288-
289-
$obj->slug = 'material-design';
290-
$this->assertEquals( true, $this->admin->enable_plugin_auto_update( null, $obj ) );
291-
}
292-
293-
/**
294-
* Test for enable_theme_auto_update() method.
295-
*
296-
* @see Plugin::enable_theme_auto_update()
297-
*/
298-
public function enable_theme_auto_update() {
299-
$obj = new \stdClass();
300-
$obj->slug = 'generic-theme';
301-
302-
$this->assertEquals( null, $this->admin->enable_theme_auto_update( null, $obj ) );
303-
$this->assertEquals( false, $this->admin->enable_theme_auto_update( false, $obj ) );
304-
305-
$obj->slug = Plugin::THEME_SLUG;
306-
$this->assertEquals( true, $this->admin->enable_theme_auto_update( null, $obj ) );
307-
}
308-
309275
/**
310276
* Return the material theme template.
311277
*

0 commit comments

Comments
 (0)