PHP Trait HelperTrait

Mostrar archivo Open project: phalcon/forum

Public Methods

Method Description
amAdmin ( array $attributes = null ) : integer Creates an admin user and return it id
amRegularUser ( array $attributes = null ) : integer Creates a random user and return it id
haveCategory ( array $attributes = null ) : integer Creates a random category and return its id
havePost ( array $attributes = null ) : integer Creates a random post and return its id
havePostHistory ( array $attributes = null ) : integer Creates a random post history and return its id
haveReply ( array $attributes = null ) : integer Creates a random post reply and return its id

Method Details

amAdmin() public method

Creates an admin user and return it id
public amAdmin ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
return integer

amRegularUser() public method

Creates a random user and return it id
public amRegularUser ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
return integer

haveCategory() public method

Creates a random category and return its id
public haveCategory ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
return integer

havePost() public method

Creates a random post and return its id
public havePost ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
return integer

havePostHistory() public method

Creates a random post history and return its id
public havePostHistory ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
return integer

haveReply() public method

Creates a random post reply and return its id
public haveReply ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
return integer