PHP 클래스 WP_UnitTest_Factory_For_Thing

파일 보기 프로젝트 열기: lucatume/wp-browser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$default_generation_definitions
$factory

공개 메소드들

메소드 설명
__construct ( object $factory, array $default_generation_definitions = [] ) Creates a new factory, which will create objects of a specific Thing
addslashes_deep ( $value )
apply_callbacks ( $callbacks, $created )
callback ( $function )
create ( $args = [], $generation_definitions = null )
create_and_get ( $args = [], $generation_definitions = null )
create_many ( $count, $args = [], $generation_definitions = null )
create_object ( $args )
generate_args ( $args = [], $generation_definitions = null, &$callbacks = null )
get_object_by_id ( $object_id )
update_object ( $object, $fields )

메소드 상세

__construct() 공개 메소드

Creates a new factory, which will create objects of a specific Thing
public __construct ( object $factory, array $default_generation_definitions = [] )
$factory object Global factory that can be used to create other objects on the system
$default_generation_definitions array Defines what default values should the properties of the object have. The default values can be generators -- an object with next() method. There are some default generators: {@link WP_UnitTest_Generator_Sequence}, {@link WP_UnitTest_Generator_Locale_Name}, {@link WP_UnitTest_Factory_Callback_After_Create}.

addslashes_deep() 공개 메소드

public addslashes_deep ( $value )

apply_callbacks() 공개 메소드

public apply_callbacks ( $callbacks, $created )

callback() 공개 메소드

public callback ( $function )

create() 공개 메소드

public create ( $args = [], $generation_definitions = null )

create_and_get() 공개 메소드

public create_and_get ( $args = [], $generation_definitions = null )

create_many() 공개 메소드

public create_many ( $count, $args = [], $generation_definitions = null )

create_object() 추상적인 공개 메소드

abstract public create_object ( $args )

generate_args() 공개 메소드

public generate_args ( $args = [], $generation_definitions = null, &$callbacks = null )

get_object_by_id() 추상적인 공개 메소드

abstract public get_object_by_id ( $object_id )

update_object() 추상적인 공개 메소드

abstract public update_object ( $object, $fields )

프로퍼티 상세

$default_generation_definitions 공개적으로 프로퍼티

public $default_generation_definitions

$factory 공개적으로 프로퍼티

public $factory