當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TestBase類代碼示例

本文整理匯總了PHP中TestBase的典型用法代碼示例。如果您正苦於以下問題:PHP TestBase類的具體用法?PHP TestBase怎麽用?PHP TestBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了TestBase類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     // Set the languages
     config()->set('translatable.locales', ['en', 'tr']);
     $this->setUpNodeType();
 }
開發者ID:NuclearCMS,項目名稱:Hierarchy,代碼行數:7,代碼來源:NodeTest.php

示例2: setup

 public function setup()
 {
     parent::setup();
     $this->scheduleRepository = $this->getMock('IScheduleRepository');
     $this->layout = $this->getMock('IScheduleLayout');
     $this->rule = new SchedulePeriodRule($this->scheduleRepository, $this->fakeUser);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:SchedulePeriodRuleTests.php

示例3: setup

 public function setup()
 {
     parent::setup();
     $this->attributeService = $this->getMock('IAttributeService');
     $this->userRepository = $this->getMock('IUserViewRepository');
     $this->validator = new UserRequestValidator($this->attributeService, $this->userRepository);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:UserRequestValidatorTests.php

示例4: setup

 public function setup()
 {
     parent::setup();
     $this->server = new FakeRestServer();
     $this->controller = $this->getMock('IUserSaveController');
     $this->service = new UsersWriteWebService($this->server, $this->controller);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:UsersWriteWebServiceTests.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     // We do this due to a bug
     // otherwise helper is not loaded
     app()->make('settings');
 }
開發者ID:kenarkose,項目名稱:settlement,代碼行數:7,代碼來源:SettingHelperTest.php

示例6: setup

 public function setup()
 {
     parent::setup();
     $this->activationRepo = $this->getMock('IAccountActivationRepository');
     $this->userRepo = $this->getMock('IUserRepository');
     $this->activation = new AccountActivation($this->activationRepo, $this->userRepo);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:AccountActivationTests.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->path = FIXTURES . DS . 'tests';
     $this->bootstrap = dirname(FIXTURES) . DS . 'bootstrap.php';
     $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper';
 }
開發者ID:bruno-arsene,項目名稱:paratest,代碼行數:7,代碼來源:WorkerTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     if (!self::$connectionSet) {
         LudoDb::setConnectionType('PDO');
     }
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:7,代碼來源:PDOTests.php

示例9: 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);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:SavedReportsPresenterTests.php

示例10: 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);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:WebAuthenticationTests.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setUpNodeType();
     NodeSource::flushEventListeners();
     NodeSource::boot();
 }
開發者ID:NuclearCMS,項目名稱:Hierarchy,代碼行數:7,代碼來源:NodeSourceTest.php

示例12: setup

 public function setup()
 {
     parent::setup();
     $this->attributeRepository = new FakeAttributeRepository();
     $this->controller = new AttributeSaveController($this->attributeRepository);
     $this->session = new FakeWebServiceUserSession(1);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:AttributeSaveControllerTests.php

示例13: setup

 public function setup()
 {
     $this->userRepository = $this->getMock('IUserRepository');
     $this->user = new FakeUserSession();
     $this->repo = new ScheduleAdminScheduleRepository($this->userRepository, $this->user);
     parent::setup();
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:ScheduleAdminScheduleRepositoryTests.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $s = new Section();
     $s->drop()->yesImSure();
     $s->createTable();
 }
開發者ID:manishkhanchandani,項目名稱:mkgxy,代碼行數:7,代碼來源:ColumnAliasTest.php

示例15: 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);
 }
開發者ID:utn-frm-si,項目名稱:booked,代碼行數:7,代碼來源:ManageResourceGroupsPresenterTests.php


注:本文中的TestBase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。