function let() { \BX\DB\Schema::loadFromYamlFile(); $entity = TestTable::finder()->filter(['ID' => 1])->get(); $this->beConstructedWith($entity); $this->entity = $entity; }
function let() { \BX\DB\Schema::loadFromYamlFile(); $entity = new TestTable(); $entity->test = 'TEST'; $this->beConstructedWith($entity); $this->entity = $entity; }
function let() { \BX\DB\Schema::loadFromYamlFile(); $files = ['PICTURE' => ['name' => '5885_1.jpeg', 'type' => 'image/jpeg', 'tmp_name' => '/tmp/phpbQ4Z7l', 'error' => 0, 'size' => 40231]]; $this->request()->setFiles($files); $server = $this->request()->server()->all(); $server['DOCUMENT_ROOT'] = realpath(__DIR__ . '/data'); $this->request()->setServer($server); $file = realpath(__DIR__ . '/../../../test/data/5885_1.jpeg'); copy($file, '/tmp/phpbQ4Z7l'); }
function let() { Schema::loadFromYamlFile(); }
function let() { \BX\DB\Schema::loadFromYamlFile(); }
function let() { Schema::loadFromYamlFile(); $session = ['ID' => 1, 'USER_ID' => 1, 'GUID' => 'qwerty']; $this->session()->set(AuthManager::KEY, $session); }
function let() { Schema::loadFromYamlFile(); $this->beConstructedWith('test'); }