/**
  * Set up.
  */
 function setUp()
 {
     parent::setUp();
     $this->createRequest("debug_clear")->exec();
     $r = $this->createRequest("new_address")->exec();
     $this->address = $r["address"];
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     // Set the languages
     config()->set('translatable.locales', ['en', 'tr']);
     $this->setUpNodeType();
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->path = FIXTURES . DS . 'tests';
     $this->bootstrap = dirname(FIXTURES) . DS . 'bootstrap.php';
     $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper';
 }
Ejemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     if (!self::$connectionSet) {
         LudoDb::setConnectionType('PDO');
     }
 }
Ejemplo n.º 5
0
 public function setUp()
 {
     parent::setUp();
     $this->setUpNodeType();
     NodeSource::flushEventListeners();
     NodeSource::boot();
 }
Ejemplo n.º 6
0
 public function setUp()
 {
     parent::setUp();
     // Let the current user do anything.
     global $current_user;
     $current_user->add_cap('promote_users');
 }
Ejemplo n.º 7
0
 public function setUp()
 {
     parent::setUp();
     $g = new TestGame();
     $g->drop()->yesImSure();
     $g->createTable();
 }
Ejemplo n.º 8
0
 public function setUp()
 {
     parent::setUp();
     $s = new Section();
     $s->drop()->yesImSure();
     $s->createTable();
 }
Ejemplo n.º 9
0
 public function setUp()
 {
     parent::setUp();
     // We do this due to a bug
     // otherwise helper is not loaded
     app()->make('settings');
 }
Ejemplo n.º 10
0
 public function setUp()
 {
     parent::setUp();
     LudoDB::setConnectionType('PDO');
     $this->startTimer();
     $person = new Person();
     $person->deleteTableData();
 }
Ejemplo n.º 11
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     static::skipIfCodeCoverageNotEnabled();
     $this->targetDir = str_replace('.', '_', uniqid('/tmp/paratest-', true));
     $this->removeDirectory($this->targetDir);
     mkdir($this->targetDir);
 }
Ejemplo n.º 12
0
 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');
 }
Ejemplo n.º 13
0
 public function setUp()
 {
     parent::setUp();
     $p = new PersonForUtility();
     if ($p->exists()) {
         $p->drop()->yesImSure();
     }
     $p->createTable();
 }
Ejemplo n.º 14
0
 public function setUp()
 {
     parent::setUp();
     $car = new Car();
     $car->drop()->yesImSure();
     $car->createTable();
     $pr = new CarProperty();
     $pr->drop()->yesImSure();
     $pr->createTable();
 }
Ejemplo n.º 15
0
 public function setUp()
 {
     parent::setUp();
     $c = new LudoDBCache();
     $c->drop()->yesImSure();
     $c->createTable();
     $c = new Capital();
     $c->drop()->yesImSure();
     $c->createTable();
 }
Ejemplo n.º 16
0
 /**
  * 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', []);
 }
Ejemplo n.º 17
0
 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();
 }
Ejemplo n.º 18
0
 public function setUp()
 {
     parent::setUp();
     SiteView::truncate();
     session()->flush();
 }
Ejemplo n.º 19
0
 public function setUp()
 {
     parent::setUp();
     Media::flushEventListeners();
     Media::boot();
 }
Ejemplo n.º 20
0
 public function setUp()
 {
     parent::setUp();
     config()->set('auth.model', 'User');
 }
Ejemplo n.º 21
0
 public function setUp()
 {
     parent::setUp();
     $this->bootstrap = PARATEST_ROOT . '/test/bootstrap.php';
     $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper';
 }
Ejemplo n.º 22
0
 public function setUp()
 {
     $this->executableTestChild = new ExecutableTestChild('pathToFile', 'ClassNameTest');
     parent::setUp();
 }
Ejemplo n.º 23
0
 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();
 }
Ejemplo n.º 25
0
 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);
 }
Ejemplo n.º 26
0
 public function setUp()
 {
     parent::setUp();
     Determinable::flushEventListeners();
     Determinable::boot();
 }
Ejemplo n.º 27
0
 public function setUp()
 {
     parent::setUp();
 }
Ejemplo n.º 28
0
 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"}}']);
 }
Ejemplo n.º 29
0
 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'));
 }