yii\test\ArrayFixture::load PHP Метод

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

The default implementation simply stores the data returned by ArrayFixture::getData in [[data]]. You should usually override this method by putting the data into the underlying database.
public load ( )
    public function load()
    {
        $this->data = $this->getData();
    }

Usage Example

Пример #1
0
 /**
  * @expectedException \yii\base\InvalidConfigException
  */
 public function testWrongDataFileException()
 {
     $this->_fixture->dataFile = 'wrong/fixtures/data/path/alias';
     $this->_fixture->load();
 }