public function setUp()
 {
     parent::setUp();
     $this->checker = m::mock(ActivityCsvFieldChecker::class);
     $this->parser = m::mock(ActivityDataParser::class);
     $this->simpleActivityRow = new SimpleActivityRow($this->checker, $this->parser);
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $this->activityData = m::mock(Activity::class);
     $this->activityResult = m::mock(ActivityResult::class);
     $this->result = new Result($this->activityData, $this->activityResult);
 }
 public function setUp()
 {
     parent::setUp();
     $this->simpleActivityRow = m::mock(SimpleActivityRow::class);
     $this->excelReader = m::mock(LaravelExcelReader::class);
     $this->simpleActivity = new SimpleActivity($this->simpleActivityRow);
 }
 public function setUp()
 {
     parent::setUp();
     $this->transactionModel = m::mock(Transaction::class);
     $this->csvReader = m::mock(CsvReader::class);
     $this->transactionRepo = m::mock(TransactionRepo::class);
     $this->uploadTransactionRepo = new UploadTransaction($this->transactionModel, $this->transactionRepo, $this->csvReader);
 }
Пример #5
0
 public function setUp()
 {
     parent::setUp();
     $this->settings = m::mock(Settings::class);
     $this->orgData = m::mock(OrganizationData::class);
     $this->activity = m::mock(Activity::class);
     $this->transaction = m::mock(Transaction::class);
     $this->upgrade = new Upgrade($this->settings, $this->orgData, $this->activity, $this->transaction);
 }
 public function setUp()
 {
     parent::setUp();
     $this->version = m::mock('App\\Core\\Version');
     $this->participatingOrgRepository = m::mock(ParticipatingOrganization::class);
     $this->version->shouldReceive('getActivityElement->getParticipatingOrganization->getRepository')->andReturn($this->participatingOrgRepository);
     $this->logger = m::mock('Illuminate\\Contracts\\Logging\\Log');
     $this->auth = m::mock('Illuminate\\Contracts\\Auth\\Guard');
     $this->participatingOrgManager = new ParticipatingOrganizationManager($this->version, $this->logger, $this->auth);
 }
 public function setUp()
 {
     parent::setUp();
     $this->activity = m::mock(Activity::class);
     $this->activityRepo = m::mock(ActivityRepository::class);
     $this->organization = m::mock(Organization::class);
     $this->orgRepo = m::mock(OrganizationRepository::class);
     $this->readCsv = m::mock(CsvReader::class);
     $this->uploadActivityRepo = new UploadActivity($this->activity, $this->activityRepo, $this->readCsv, $this->orgRepo, $this->organization);
 }
Пример #8
0
 public function setup()
 {
     parent::setUp();
     $this->settings = m::mock(Settings::class);
     $this->organizationData = m::mock(OrganizationData::class);
     $this->organization = m::mock(Organization::class);
     $this->sessionManager = m::mock(SessionManager::class);
     $this->databaseManager = m::mock(DatabaseManager::class);
     $this->settingRepository = new SettingsRepository($this->settings, $this->organizationData, $this->sessionManager, $this->databaseManager);
 }
 public function setUp()
 {
     parent::setUp();
     $this->version = m::mock('App\\Core\\Version');
     $this->documentLinkRepository = m::mock('App\\Core\\V201\\Repositories\\Organization\\DocumentLinkRepository');
     $this->version->shouldReceive('getOrganizationElement->getDocumentLink->getRepository')->andReturn($this->documentLinkRepository);
     $this->logger = m::mock('Illuminate\\Contracts\\Logging\\Log');
     $this->auth = m::mock('Illuminate\\Contracts\\Auth\\Guard');
     $this->docLinkManager = new DocumentLinkManager($this->version, $this->logger, $this->auth);
 }
 public function setUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->dbLogger = m::mock(DbLogger::class);
     $this->logger = m::mock(Logger::class);
     $this->transactionRepo = m::mock(Transaction::class);
     $this->version->shouldReceive('getActivityElement->getTransaction->getRepository')->andReturn($this->transactionRepo);
     $this->transactionManager = new TransactionManager($this->version, $this->auth, $this->dbLogger, $this->logger);
 }
 public function setUp()
 {
     parent::setUp();
     $this->adminInterface = m::mock('App\\SuperAdmin\\Repositories\\SuperAdminInterfaces\\SuperAdmin');
     $this->generator = m::mock(CsvGenerator::class);
     $this->user = m::mock(User::class);
     $this->activityPublished = m::mock(ActivityPublished::class);
     $this->organizationPublished = m::mock(OrganizationPublished::class);
     $this->activity = m::mock(Activity::class);
     $this->superAdminManager = new SuperAdminManager($this->adminInterface, $this->generator, $this->user, $this->activityPublished, $this->organizationPublished, $this->activity);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->logger = m::mock(Log::class);
     $this->sectorRepository = m::mock(Sector::class);
     $this->activity = m::mock(Activity::class);
     $this->version->shouldReceive('getActivityElement->getSector->getRepository')->andReturn($this->sectorRepository);
     $this->sectorManager = new SectorManager($this->version, $this->auth, $this->logger);
 }
 public function setUp()
 {
     parent::setUp();
     $this->user = m::mock(User::class);
     $this->userGroup = m::mock(UserGroup::class);
     $this->organization = m::mock(Organization::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->logger = m::mock(Log::class);
     $this->loggerInterface = m::mock('Psr\\Log\\LoggerInterface');
     $this->organizationGroup = new OrganizationGroup($this->user, $this->userGroup, $this->organization, $this->database, $this->loggerInterface, $this->logger);
 }
Пример #14
0
 public function setUp()
 {
     parent::setUp();
     $this->user = m::mock(User::class);
     $this->settings = m::mock(Settings::class);
     $this->organization = m::mock(Organization::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->logger = m::mock(Log::class);
     $this->loggerInterface = m::mock('Psr\\Log\\LoggerInterface');
     $this->superAdmin = new SuperAdmin($this->user, $this->settings, $this->organization, $this->database, $this->loggerInterface, $this->logger);
 }
 public function setUp()
 {
     parent::setUp();
     $this->activity = m::mock(Activity::class);
     $this->version = m::mock(Version::class);
     $this->recipientCountryRepository = m::mock(RecipientCountry::class);
     $this->version->shouldReceive('getActivityElement->getRecipientCountry->getRepository')->andReturn($this->recipientCountryRepository);
     $this->logger = m::mock(Log::class);
     $this->auth = m::mock(Guard::class);
     $this->recipientCountryManager = new RecipientCountryManager($this->version, $this->logger, $this->auth);
 }
 public function setUp()
 {
     parent::setUp();
     $this->activityDataParserMock = m::mock(ActivityDataParser::class);
     $this->activityModel = m::mock(Activity::class);
     $this->organizationModel = m::mock(Organization::class);
     $this->settingsModel = m::mock(Settings::class);
     $this->activityDataParser = new ActivityDataParser($this->activityModel, $this->organizationModel, $this->settingsModel);
     $this->settingsModel->shouldReceive('where->first')->andReturn($this->settingsModel);
     $this->settingsModel->shouldReceive('getAttribute')->with('default_field_values')->once()->andReturn($this->defaultFieldGroups);
     $this->activityDataParser->init($this->activity);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->logger = m::mock(Log::class);
     $this->countryBudgetItemRepo = m::mock(CountryBudgetItem::class);
     $this->activity = m::mock(Activity::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->version->shouldReceive('getActivityElement->getCountryBudgetItem->getRepository')->andReturn($this->countryBudgetItemRepo);
     $this->countryBudgetItemManager = new CountryBudgetItemManager($this->version, $this->auth, $this->database, $this->logger);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->dbLogger = m::mock(DbLogger::class);
     $this->logger = m::mock(Logger::class);
     $this->upgradeRepo = m::mock(Upgrade::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->version->shouldReceive('getSettingsElement->getUpgradeRepository')->andReturn($this->upgradeRepo);
     $this->upgradeManager = new UpgradeManager($this->version, $this->auth, $this->database, $this->dbLogger, $this->logger);
 }
 public function setUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->logger = m::mock(Log::class);
     $this->stepTwoRepo = m::mock(StepTwo::class);
     $this->activity = m::mock(Activity::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->version->shouldReceive('getActivityElement->getStepTwo->getRepository')->andReturn($this->stepTwoRepo);
     $this->stepTwoManager = new StepTwoManager($this->version, $this->auth, $this->database, $this->logger);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->dbLogger = m::mock(DbLogger::class);
     $this->logger = m::mock(Logger::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->resultRepo = m::mock(Result::class);
     $this->activityResult = m::mock(ActivityResult::class);
     $this->version->shouldReceive('getActivityElement->getResult->getRepository')->andReturn($this->resultRepo);
     $this->resultManager = new ResultManager($this->version, $this->auth, $this->database, $this->dbLogger, $this->logger);
 }
 public function setUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->dbLogger = m::mock(dbLogger::class);
     $this->logger = m::mock(Logger::class);
     $this->auth = m::mock(Guard::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->totalExpenditureRepo = m::mock(TotalExpenditure::class);
     $this->orgDataModel = m::mock(OrganizationData::class);
     $this->version->shouldReceive('getOrganizationElement->getTotalExpenditureRepository')->andReturn($this->totalExpenditureRepo);
     $this->totalExpenditureManager = new TotalExpenditureManager($this->version, $this->auth, $this->database, $this->dbLogger, $this->logger);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->dbLogger = m::mock(DbLogger::class);
     $this->logger = m::mock(Logger::class);
     $this->collaborationTypeRepo = m::mock(CollaborationType::class);
     $this->activity = m::mock(Activity::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->version->shouldReceive('getActivityElement->getCollaborationType->getRepository')->andReturn($this->collaborationTypeRepo);
     $this->collaborationTypeManager = new CollaborationTypeManager($this->version, $this->auth, $this->database, $this->dbLogger, $this->logger);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->dbLogger = m::mock(DbLogger::class);
     $this->logger = m::mock(Logger::class);
     $this->defaultTiedStatusRepo = m::mock(DefaultTiedStatus::class);
     $this->activity = m::mock(Activity::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->version->shouldReceive('getActivityElement->getDefaultTiedStatus->getRepository')->andReturn($this->defaultTiedStatusRepo);
     $this->defaultTiedStatusManager = new DefaultTiedStatusManager($this->version, $this->auth, $this->database, $this->dbLogger, $this->logger);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->auth = m::mock(Guard::class);
     $this->dbLogger = m::mock(Log::class);
     $this->logger = m::mock(LoggerInterface::class);
     $this->documentLinkRepo = m::mock(DocumentLink::class);
     $this->activity = m::mock(Activity::class);
     $this->documentLinkModel = m::mock(ActivityDocumentLink::class);
     $this->documentManager = m::mock(DocumentManager::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->version->shouldReceive('getActivityElement->getDocumentLink->getRepository')->andReturn($this->documentLinkRepo);
     $this->documentLinkManager = new DocumentLinkManager($this->version, $this->auth, $this->database, $this->dbLogger, $this->logger);
 }
 public function SetUp()
 {
     parent::setUp();
     $this->version = m::mock(Version::class);
     $this->settingRepo = m::mock(SettingsRepository::class);
     $this->version->shouldReceive('getSettingsElement->getRepository')->andReturn($this->settingRepo);
     $this->activityManager = m::mock(ActivityManager::class);
     $this->organizationManager = m::mock(OrganizationManager::class);
     $this->setting = m::mock(Settings::class);
     $this->logger = m::mock(LoggerInterface::class);
     $this->dbLogger = m::mock(Log::class);
     $this->auth = m::mock(Guard::class);
     $this->dbManager = m::mock(DatabaseManager::class);
     $this->settingManager = new SettingsManager($this->version, $this->activityManager, $this->organizationManager, $this->dbManager, $this->auth, $this->dbLogger, $this->logger);
 }
 public function setUp()
 {
     parent::setUp();
     $this->simpleActivityParser = m::mock(SimpleActivity::class);
     $this->simpleActivityDemoParser = m::mock(SimpleActivityDemo::class);
     $this->version = m::mock(Version::class);
     $this->logger = m::mock(Log::class);
     $this->excelReader = m::mock(LaravelExcelReader::class);
     $this->importActivityMock = m::mock(ImportActivity::class);
     $this->database = m::mock(DatabaseManager::class);
     $this->orgManager = m::mock(OrganizationManager::class);
     $this->version->shouldReceive('getActivityElement->getSimpleActivityParser')->andReturn($this->simpleActivityParser);
     $this->version->shouldReceive('getActivityElement->getSimpleActivityDemoParser')->andReturn($this->simpleActivityDemoParser);
     $this->importActivity = new ImportActivity($this->version, $this->logger, $this->orgManager);
 }
 public function setUp()
 {
     parent::setUp();
     $this->activity = m::mock(Activity::class);
     $this->changeActivityDefault = new ChangeActivityDefault($this->activity);
 }
 public function setUp()
 {
     parent::setUp();
     $this->organizationData = m::mock('App\\Models\\Organization\\OrganizationData');
     $this->documentLinkRepository = new DocumentLinkRepository($this->organizationData);
 }
Пример #29
0
 public function setUp()
 {
     parent::setUp();
     $this->activityData = m::mock(Activity::class);
     $this->location = new Location($this->activityData);
 }
 public function setup()
 {
     parent::setUp();
     $this->activity = m::mock(Activity::class);
     $this->planned_disbursement = new PlannedDisbursement($this->activity);
 }