PHP Класс EP_Test_Base

Наследование: extends WP_UnitTestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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