Exemplo n.º 1
0
 public function setup()
 {
     parent::setup();
     $this->app->bind('Interfacer', 'SanitasInterfacer');
     Artisan::call('migrate');
     $this->setVariables();
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setup();
     if (!$this->s3ConfigLoaded()) {
         $this->markTestSkipped('S3 Credentials not available.');
     }
 }
Exemplo n.º 3
0
 public function setup()
 {
     parent::setup();
     $todo = factory(\App\Todo::class)->create();
     // echo $todo;
     $this->id = $todo['id'];
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 7
0
 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);
 }
Exemplo n.º 8
0
	/**
	 * 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);
 }
Exemplo n.º 11
0
 /**
  * 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()}";
     };
 }
Exemplo n.º 13
0
 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);
 }
Exemplo n.º 14
0
 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');
 }
Exemplo n.º 17
0
 /**
  * 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);
 }
Exemplo n.º 19
0
 public function setUp()
 {
     parent::setup();
     $this->course = factory(App\Course::class)->create();
 }
Exemplo n.º 20
0
 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)));
 }
Exemplo n.º 21
0
 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();
 }
Exemplo n.º 23
0
 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');
 }
Exemplo n.º 26
0
 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();
 }