public function setup() { parent::setup(); $this->app->bind('Interfacer', 'SanitasInterfacer'); Artisan::call('migrate'); $this->setVariables(); }
public function setUp() { parent::setup(); if (!$this->s3ConfigLoaded()) { $this->markTestSkipped('S3 Credentials not available.'); } }
public function setup() { parent::setup(); $todo = factory(\App\Todo::class)->create(); // echo $todo; $this->id = $todo['id']; }
public function setup() { parent::setup(); $this->app->bind('Interfacer', 'App\\Api\\MedbossInterfacer'); Artisan::call('migrate'); Artisan::call('db:seed'); }
public function setup() { parent::setup(); Session::start(); $this->app["request"]->setSession(Session::driver()); FieldPresenter::presenter(null); }
/** * Setup method. */ public function setup() { parent::setup(); $this->fakePlayersService = m::mock('App\\Services\\Players\\PlayersService'); $this->fakeMatchesService = m::mock('App\\Services\\Matches\\MatchesService'); $this->service = new SwissService($this->fakePlayersService, $this->fakeMatchesService); }
public function setup() { parent::setup(); $this->appManager = \OC::$server->getAppManager(); $this->groupManager = \OC::$server->getGroupManager(); $this->userSession = \OC::$server->getUserSession(); $this->api = new \OCA\Provisioning_API\Apps($this->appManager); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 11.4 */ protected function setUp() { parent::setup(); $this->saveFactoryState(); JFactory::$session = $this->getMockSession(); }
/** * Setup Method. */ public function setup() { parent::setup(); $this->fakeMatchesRepo = m::mock('App\\Repositories\\Matches\\IMatchesRepository'); $this->fakeTournamentsRepo = m::mock('App\\Repositories\\Tournaments\\ITournamentsRepository'); $this->fakePlayersRepo = m::mock('App\\Repositories\\Players\\IPlayersRepository'); $this->service = new MatchesService($this->fakeMatchesRepo, $this->fakeTournamentsRepo, $this->fakePlayersRepo); }
/** * Setup method. */ public function setup() { parent::setup(); $this->fakeRankingsRepo = m::mock('App\\Repositories\\Rankings\\IRankingsRepository'); $this->fakePlayersRepo = m::mock('App\\Repositories\\Players\\IPlayersRepository'); $this->fakeTournamentsRepo = m::mock('App\\Repositories\\Tournaments\\ITournamentsRepository'); $this->fakeAdministratorsRepository = m::mock('App\\Repositories\\Administrators\\IAdministratorsRepository'); $this->service = new RankingsService($this->fakeRankingsRepo, $this->fakePlayersRepo, $this->fakeTournamentsRepo, $this->fakeAdministratorsRepository); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 3.1 */ protected function setUp() { parent::setup(); $this->saveFactoryState(); JFactory::$session = $this->getMockSession(); $this->backupServer = $_SERVER; $_SERVER['HTTP_HOST'] = 'example.com'; $_SERVER['SCRIPT_NAME'] = ''; }
public function setup() { parent::setup(); Session::start(); $this->app["request"]->setSession(Session::driver()); $this->presenter = function ($attrs) { return "{$attrs["field"]->label()} {$attrs["field"]->display()}"; }; }
public function setUp() { parent::setup(); $ingredient_repository = new CSVIngredientRepository(); $recipe_repository = new JSONRecipeRepository(); $ingredient_repository->setDatasource(app_path() . '/tests/data/ingredients.csv'); $recipe_repository->setDatasource(app_path() . '/tests/data/recipes.json'); App::bind('RecipeFinder\\Ingredient\\IngredientRepositoryInterface', 'RecipeFinder\\Ingredient\\CSVIngredientRepository'); App::bind('RecipeFinder\\Recipe\\RecipeRepositoryInterface', 'RecipeFinder\\Recipe\\JSONRecipeRepository'); $this->recipe_finder = new RecipeFinder($recipe_repository, $ingredient_repository); }
public function setUp() { parent::setup(); $this->ingredients_csv = app_path() . '/tests/data/ingredients.csv'; }
/** * Setup method */ public function setup() { parent::setup(); $this->repository = $this->app->make('App\\Repositories\\Matches\\IMatchesRepository'); }
/** * Setup method */ public function setup() { parent::setup(); $this->repository = $this->app->make('App\\Repositories\\Rankings\\IRankingsRepository'); }
/** * tearDown * - rollback migrations */ public function tearDown() { parent::setup(); $this->artisan('migrate:rollback'); }
/** * Setup method. */ public function setup() { parent::setup(); $this->fakeAdministratorsRepo = m::mock('App\\Repositories\\Administrators\\IAdministratorsRepository'); $this->service = new AdministratorsService($this->fakeAdministratorsRepo); }
public function setUp() { parent::setup(); $this->course = factory(App\Course::class)->create(); }
public function setup() { parent::setup(); $this->users = new Table('users_light', array(new Column('id', Column::INTEGER, array('primary_key' => true, 'auto_increment' => true)), new Column('fullname', Column::STRING), new Column('login', Column::STRING), new Column('password', Column::STRING))); }
public function setUp() { parent::setup(); $this->recipes_json = app_path() . '/tests/data/recipes.json'; }
/** * Setup method. */ public function setup() { parent::setup(); $this->pairingsHandler = new PairingsHandler(); }
public function setup() { parent::setup(); Artisan::call('migrate'); Artisan::call('db:seed'); }
/** * Setup method */ public function setup() { parent::setup(); $this->repository = $this->app->make('App\\Repositories\\Players\\IPlayersRepository'); }
/** * Setup method. */ public function setup() { parent::setup(); $this->repository = $this->app->make('App\\Repositories\\Administrators\\IAdministratorsRepository'); }
public function setUp() { parent::setup(); $this->parent = factory(App\User::class)->create(); $this->child = factory(App\Child::class)->make(); }
/** * Setup method. */ public function setup() { parent::setup(); $this->fakeTournamentsRepo = m::mock('App\\Repositories\\Tournaments\\ITournamentsRepository'); $this->service = new TournamentsService($this->fakeTournamentsRepo); }
/** * Setup method */ public function setup() { parent::setup(); $this->repository = $this->app->make('App\\Repositories\\Tournaments\\ITournamentsRepository'); }
public function setUp() { parent::setup(); Artisan::call('migrate'); $this->repo = new Way\Repositories\DbLinkRepository(); }
public function setUp() { parent::setup(); $this->user = factory(App\User::class)->create(); }