本文整理匯總了PHP中TestBase::setup方法的典型用法代碼示例。如果您正苦於以下問題:PHP TestBase::setup方法的具體用法?PHP TestBase::setup怎麽用?PHP TestBase::setup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TestBase
的用法示例。
在下文中一共展示了TestBase::setup方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setup
public function setup()
{
parent::setup();
$this->fakeAuth = new FakeAuth();
$this->loginContext = $loginContext = new WebLoginContext(new LoginData(true));
$this->webAuth = new WebAuthentication($this->fakeAuth, $this->fakeServer);
}
示例2: setup
public function setup()
{
parent::setup();
$this->page = new FakeSavedReportsPage();
$this->service = $this->getMock('IReportingService');
$this->presenter = new SavedReportsPresenter($this->page, $this->fakeUser, $this->service);
}
示例3: setup
public function setup()
{
parent::setup();
$this->attributeRepository = new FakeAttributeRepository();
$this->controller = new AttributeSaveController($this->attributeRepository);
$this->session = new FakeWebServiceUserSession(1);
}
示例4: setup
public function setup()
{
$this->userRepository = $this->getMock('IUserRepository');
$this->user = new FakeUserSession();
$this->repo = new ScheduleAdminScheduleRepository($this->userRepository, $this->user);
parent::setup();
}
示例5: setup
public function setup()
{
parent::setup();
$this->page = $this->getMock('IManageResourceGroupsPage');
$this->resourceRepository = $this->getMock('IResourceRepository');
$this->presenter = new ManageResourceGroupsPresenter($this->page, $this->fakeUser, $this->resourceRepository);
}
示例6: setup
public function setup()
{
parent::setup();
$this->scheduleRepository = $this->getMock('IScheduleRepository');
$this->layout = $this->getMock('IScheduleLayout');
$this->rule = new SchedulePeriodRule($this->scheduleRepository, $this->fakeUser);
}
示例7: setup
public function setup()
{
parent::setup();
$this->authentication = $this->getMock('IWebServiceAuthentication');
$this->server = new FakeRestServer();
$this->service = new AuthenticationWebService($this->server, $this->authentication);
}
示例8: setup
public function setup()
{
parent::setup();
$this->server = new FakeRestServer();
$this->controller = $this->getMock('IUserSaveController');
$this->service = new UsersWriteWebService($this->server, $this->controller);
}
示例9: setup
public function setup()
{
parent::setup();
$this->attributeService = $this->getMock('IAttributeService');
$this->userRepository = $this->getMock('IUserViewRepository');
$this->validator = new UserRequestValidator($this->attributeService, $this->userRepository);
}
示例10: setup
public function setup()
{
parent::setup();
$this->scheduleRepository = $this->getMock('IScheduleRepository');
$this->schedule = new FakeSchedule();
$this->schedule->SetTimezone('America/Chicago');
}
示例11: setup
public function setup()
{
parent::setup();
$this->attributeService = $this->getMock('IAttributeService');
$this->server = new FakeRestServer();
$this->service = new AttributesWebService($this->server, $this->attributeService);
}
示例12: setup
public function setup()
{
parent::setup();
$this->page = new FakeAttributePage();
$this->attributeRepository = $this->getMock('IAttributeRepository');
$this->presenter = new ManageAttributesPresenter($this->page, $this->attributeRepository);
}
示例13: setup
public function setup()
{
parent::setup();
$this->scheduleRepository = $this->getMock('IScheduleRepository');
$this->layout = $this->getMock('IScheduleLayout');
$this->fakeConfig->SetSectionKey(ConfigSection::RESERVATION, ConfigKeys::RESERVATION_START_TIME_CONSTRAINT, ReservationStartTimeConstraint::FUTURE);
}
示例14: setup
public function setup()
{
parent::setup();
$this->page = $this->getMock('ICalendarSubscriptionPage');
$this->subscriptionService = $this->getMock('ICalendarSubscriptionService');
$this->validator = new CalendarSubscriptionValidator($this->page, $this->subscriptionService);
}
示例15: setup
public function setup()
{
parent::setup();
$this->reservationRepository = $this->getMock('IReservationViewRepository');
$this->accessoryRepository = $this->getMock('IAccessoryRepository');
$this->rule = new AccessoryAvailabilityRule($this->reservationRepository, $this->accessoryRepository, 'UTC');
}