本文整理汇总了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();
}
示例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);
}
示例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);
}
示例4: setup
public function setup()
{
parent::setup();
$this->server = new FakeRestServer();
$this->controller = $this->getMock('IUserSaveController');
$this->service = new UsersWriteWebService($this->server, $this->controller);
}
示例5: setUp
public function setUp()
{
parent::setUp();
// We do this due to a bug
// otherwise helper is not loaded
app()->make('settings');
}
示例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);
}
示例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';
}
示例8: setUp
public function setUp()
{
parent::setUp();
if (!self::$connectionSet) {
LudoDb::setConnectionType('PDO');
}
}
示例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);
}
示例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);
}
示例11: setUp
public function setUp()
{
parent::setUp();
$this->setUpNodeType();
NodeSource::flushEventListeners();
NodeSource::boot();
}
示例12: setup
public function setup()
{
parent::setup();
$this->attributeRepository = new FakeAttributeRepository();
$this->controller = new AttributeSaveController($this->attributeRepository);
$this->session = new FakeWebServiceUserSession(1);
}
示例13: setup
public function setup()
{
$this->userRepository = $this->getMock('IUserRepository');
$this->user = new FakeUserSession();
$this->repo = new ScheduleAdminScheduleRepository($this->userRepository, $this->user);
parent::setup();
}
示例14: setUp
public function setUp()
{
parent::setUp();
$s = new Section();
$s->drop()->yesImSure();
$s->createTable();
}
示例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);
}