示例#1
0
 function let()
 {
     \BX\DB\Schema::loadFromYamlFile();
     $entity = TestTable::finder()->filter(['ID' => 1])->get();
     $this->beConstructedWith($entity);
     $this->entity = $entity;
 }
示例#2
0
 function let()
 {
     \BX\DB\Schema::loadFromYamlFile();
     $entity = new TestTable();
     $entity->test = 'TEST';
     $this->beConstructedWith($entity);
     $this->entity = $entity;
 }
示例#3
0
 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');
 }
示例#4
0
 function let()
 {
     Schema::loadFromYamlFile();
 }
示例#5
0
 function let()
 {
     \BX\DB\Schema::loadFromYamlFile();
 }
示例#6
0
 function let()
 {
     Schema::loadFromYamlFile();
     $session = ['ID' => 1, 'USER_ID' => 1, 'GUID' => 'qwerty'];
     $this->session()->set(AuthManager::KEY, $session);
 }
示例#7
0
 function let()
 {
     Schema::loadFromYamlFile();
     $this->beConstructedWith('test');
 }