PHP 클래스 EP_Test_Base

상속: extends WP_UnitTestCase
파일 보기 프로젝트 열기: 10up/elasticpress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$applied_filters array Helps us keep track of applied filters
$fired_actions array Helps us keep track of actions that have fired
$plugin_path string Stores the root path for the plugin

공개 메소드들

메소드 설명
__construct ( ) Prevents weird MySQLi error.
action_delete_post ( ) Helper function to test whether a post has been deleted off ES
action_sync_on_meta_update ( ) Helper function to test whether a meta sync has happened
action_sync_on_transition ( ) Helper function to test whether a sync has happened
action_wp_query_search ( ) Helper function to test whether a EP search has happened
filter_post_sync_args ( $post_args ) Helper function to check post sync args
setup_test_post_type ( ) Setup a few post types for testing

메소드 상세

__construct() 공개 메소드

Prevents weird MySQLi error.
부터: 1.0
public __construct ( )

action_delete_post() 공개 메소드

Helper function to test whether a post has been deleted off ES
부터: 1.0
public action_delete_post ( )

action_sync_on_meta_update() 공개 메소드

Helper function to test whether a meta sync has happened
부터: 2.0

action_sync_on_transition() 공개 메소드

Helper function to test whether a sync has happened
부터: 1.0

filter_post_sync_args() 공개 메소드

Helper function to check post sync args
부터: 1.0
public filter_post_sync_args ( $post_args )

setup_test_post_type() 공개 메소드

Setup a few post types for testing
부터: 1.0

프로퍼티 상세

$applied_filters 보호되어 있는 프로퍼티

Helps us keep track of applied filters
부터: 1.0
protected array $applied_filters
리턴 array

$fired_actions 보호되어 있는 프로퍼티

Helps us keep track of actions that have fired
부터: 1.0
protected array $fired_actions
리턴 array

$plugin_path 보호되어 있는 프로퍼티

Stores the root path for the plugin
protected string $plugin_path
리턴 string