Elgg  Version master
Public Member Functions | List of all members
Elgg\Database\Seeds\Seedable Interface Reference

Provides seedable methods for database seeding and unit tests. More...

Inheritance diagram for Elgg\Database\Seeds\Seedable:
Elgg\Database\Seeds\Seed Elgg\Database\Seeds\Groups Elgg\Database\Seeds\Users

Public Member Functions

 createUser (array $properties=[])
 Create a new fake user. More...
 
 createGroup (array $properties=[])
 Create a new fake group. More...
 
 createObject (array $properties=[])
 Create a new fake object. More...
 
 createSite (array $properties=[])
 Create a new fake site. More...
 

Detailed Description

Provides seedable methods for database seeding and unit tests.

Definition at line 8 of file Seedable.php.

Member Function Documentation

Elgg\Database\Seeds\Seedable::createGroup ( array  $properties = [])

Create a new fake group.

Parameters
array$propertiesEntity attributes/metadata
Returns
Elgg\Database\Seeds\Seedable::createObject ( array  $properties = [])

Create a new fake object.

Parameters
array$propertiesEntity attributes/metadata
Returns
Elgg\Database\Seeds\Seedable::createSite ( array  $properties = [])

Create a new fake site.

Parameters
array$propertiesEntity attributes/metadata
Returns
Elgg\Database\Seeds\Seedable::createUser ( array  $properties = [])

Create a new fake user.

Parameters
array$propertiesEntity attributes/metadata
Returns

The documentation for this interface was generated from the following file: