/** * Set up. */ function setUp() { parent::setUp(); $this->createRequest("debug_clear")->exec(); $r = $this->createRequest("new_address")->exec(); $this->address = $r["address"]; }
public function setUp() { parent::setUp(); // Set the languages config()->set('translatable.locales', ['en', 'tr']); $this->setUpNodeType(); }
public function setUp() { parent::setUp(); $this->path = FIXTURES . DS . 'tests'; $this->bootstrap = dirname(FIXTURES) . DS . 'bootstrap.php'; $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper'; }
public function setUp() { parent::setUp(); if (!self::$connectionSet) { LudoDb::setConnectionType('PDO'); } }
public function setUp() { parent::setUp(); $this->setUpNodeType(); NodeSource::flushEventListeners(); NodeSource::boot(); }
public function setUp() { parent::setUp(); // Let the current user do anything. global $current_user; $current_user->add_cap('promote_users'); }
public function setUp() { parent::setUp(); $g = new TestGame(); $g->drop()->yesImSure(); $g->createTable(); }
public function setUp() { parent::setUp(); $s = new Section(); $s->drop()->yesImSure(); $s->createTable(); }
public function setUp() { parent::setUp(); // We do this due to a bug // otherwise helper is not loaded app()->make('settings'); }
public function setUp() { parent::setUp(); LudoDB::setConnectionType('PDO'); $this->startTimer(); $person = new Person(); $person->deleteTableData(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); static::skipIfCodeCoverageNotEnabled(); $this->targetDir = str_replace('.', '_', uniqid('/tmp/paratest-', true)); $this->removeDirectory($this->targetDir); mkdir($this->targetDir); }
public function setUp() { parent::setUp(); $this->root = vfsStream::setup('root_dir', null, ['foo.txt' => 'foobar', 'bar.php' => '<?php echo "bar";']); vfsStream::newFile('large.txt')->withContent(LargeFileContent::withMegabytes(100))->at($this->root); app()['path.upload'] = vfsStream::url('root_dir') . '/upload'; $this->uploadService = app()->make('transit.upload'); }
public function setUp() { parent::setUp(); $p = new PersonForUtility(); if ($p->exists()) { $p->drop()->yesImSure(); } $p->createTable(); }
public function setUp() { parent::setUp(); $car = new Car(); $car->drop()->yesImSure(); $car->createTable(); $pr = new CarProperty(); $pr->drop()->yesImSure(); $pr->createTable(); }
public function setUp() { parent::setUp(); $c = new LudoDBCache(); $c->drop()->yesImSure(); $c->createTable(); $c = new Capital(); $c->drop()->yesImSure(); $c->createTable(); }
/** * Setup test */ public function setUp() { parent::setUp(); $this->app['router']->get('/home', function () { return ''; }); $this->app['router']->get('/test', function () { return ''; }); $this->app['session']->set('tracker.views', []); }
public function setUp() { parent::setUp(); // We need to login a default user for convenience $user = User::create(['email' => '*****@*****.**']); auth()->login($user); // We have to reboot event listeners due to an issue with phpunit // @link http://stackoverflow.com/questions/17428050/laravel-4-model-events-dont-work-with-phpunit Category::flushEventListeners(); Category::boot(); Comment::flushEventListeners(); Comment::boot(); Quote::flushEventListeners(); Quote::boot(); }
public function setUp() { parent::setUp(); SiteView::truncate(); session()->flush(); }
public function setUp() { parent::setUp(); Media::flushEventListeners(); Media::boot(); }
public function setUp() { parent::setUp(); config()->set('auth.model', 'User'); }
public function setUp() { parent::setUp(); $this->bootstrap = PARATEST_ROOT . '/test/bootstrap.php'; $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper'; }
public function setUp() { $this->executableTestChild = new ExecutableTestChild('pathToFile', 'ClassNameTest'); parent::setUp(); }
public function setUp() { parent::setUp(); vfsStream::setup('root_dir', null, ['foo.txt' => 'foobar', 'directory' => ['bar.txt' => 'barfoo']]); app()['path.upload'] = vfsStream::url('root_dir'); }
/** * */ public function setUp() { parent::setUp(); $this->createUsers(); }
public function setUp() { parent::setUp(); $this->modelAttributes = ['extension' => 'txt', 'mimetype' => 'text/plain', 'size' => 1337, 'name' => 'test', 'path' => 'path/to/test.txt']; $this->model = DownloadableItem::create($this->modelAttributes); }
public function setUp() { parent::setUp(); Determinable::flushEventListeners(); Determinable::boot(); }
public function setUp() { parent::setUp(); }
public function setUp() { parent::setUp(); vfsStream::setup('root_dir', null, ['settings.json' => '{"settings":{"foo":{"value":"bar","label":"Baz","type":"text","group":"dummy"}},"groups":{"dummy":"Dummy Group"}}']); }
public function setUp() { parent::setUp(); $util = new LudoDBUtility(); $util->dropAndCreate(array("TLudoJSPerson", "TLudoJSCountry")); }
public function setUp() { parent::setUp(); $util = new LudoDBUtility(); $util->dropAndCreate(array('PersonWithValidation')); }