test\BaseActiveFixture getData()

getData() protected method

Returns the fixture data.

The default implementation will try to return the fixture data by including the external file specified by $dataFile. The file should return the data array that will be stored in $data after inserting into the database.

protected array getData ( )
return array

The data to be put into the database

throws yii\base\InvalidConfigException

if the specified data file does not exist.

doc_Yii
2016-10-30 17:13:08
Comments
Leave a Comment

Please login to continue.