PHP Трейт HelperTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

amAdmin() публичный Метод

Creates an admin user and return it id
public amAdmin ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
Результат integer

amRegularUser() публичный Метод

Creates a random user and return it id
public amRegularUser ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
Результат integer

haveCategory() публичный Метод

Creates a random category and return its id
public haveCategory ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
Результат integer

havePost() публичный Метод

Creates a random post and return its id
public havePost ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
Результат integer

havePostHistory() публичный Метод

Creates a random post history and return its id
public havePostHistory ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
Результат integer

haveReply() публичный Метод

Creates a random post reply and return its id
public haveReply ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
Результат integer