Skip to content
Snippets Groups Projects
Commit 0ea3d0b3 authored by Erick Hitter's avatar Erick Hitter
Browse files

Scaffold new tests

parent 4a7c129f
No related branches found
No related tags found
1 merge request!12Introduce native Gutenberg controls
Pipeline #4717 passed with warnings
...@@ -34,19 +34,6 @@ class Block_Editor { ...@@ -34,19 +34,6 @@ class Block_Editor {
add_action( 'rest_api_init', array( $this, 'action_rest_api_init' ) ); add_action( 'rest_api_init', array( $this, 'action_rest_api_init' ) );
add_filter( 'is_protected_meta', array( $this, 'filter_is_protected_meta' ), 10, 2 ); add_filter( 'is_protected_meta', array( $this, 'filter_is_protected_meta' ), 10, 2 );
add_action( $this->cron_action, array( WP_Revisions_Control::get_instance(), 'do_purge_excess' ), 10, 2 ); add_action( $this->cron_action, array( WP_Revisions_Control::get_instance(), 'do_purge_excess' ), 10, 2 );
add_action( 'admin_init', array( $this, 'action_admin_init' ) );
}
/**
* Register admin-only hooks.
*
* @return void
*/
public function action_admin_init() {
if ( ! function_exists( 'use_block_editor_for_post' ) ) {
return;
}
add_action( 'enqueue_block_editor_assets', array( $this, 'action_enqueue_block_editor_assets' ) ); add_action( 'enqueue_block_editor_assets', array( $this, 'action_enqueue_block_editor_assets' ) );
} }
......
<?php
/**
* Test block-editor features.
*
* @package WP_Revisions_Control
*/
/**
* Class TestBlockEditor.
*
* @coversDefaultClass \WP_Revisions_Control\Block_Editor
*/
class TestBlockEditor extends WP_UnitTestCase {
/**
* Test REST API additions.
*
* @covers ::action_rest_api_init()
*/
public function test_action_rest_api_init() {
$this->markTestIncomplete();
}
/**
* Test REST permissions callback.
*
* @covers ::rest_api_permission_callback()
*/
public function test_rest_api_permission_callback() {
$this->markTestIncomplete();
}
/**
* Test scheduling.
*
* @covers ::rest_api_schedule_purge()
*/
public function test_rest_api_schedule_purge() {
$this->markTestIncomplete();
}
/**
* Test override for what is considered protected meta.
*
* @covers ::filter_is_protected_meta()
*/
public function test_filter_is_protected_meta() {
$this->markTestIncomplete();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment