本文整理汇总了PHP中TestCase::createApplication方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::createApplication方法的具体用法?PHP TestCase::createApplication怎么用?PHP TestCase::createApplication使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestCase
的用法示例。
在下文中一共展示了TestCase::createApplication方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::createApplication();
$this->modelMock = Mockery::mock('App\\Jugador');
$this->requestMock = Mockery::mock('App\\Http\\Requests\\JugadorRequest');
$this->imageMock = new UploadedFile('tests/imagen1.jpg', 'imagen1.jpg', 'image/jpeg', null, null, true);
}
示例2: createApplication
public function createApplication()
{
// Addons don't use Hourglass's autoload.php for testing.
// Therefore the helper functions are not loaded by default.
require_once __DIR__ . '/../../../../hourglass/helpers.php';
return parent::createApplication();
}
示例3: createApplication
public function createApplication()
{
$app = parent::createApplication();
Route::group(['namespace' => 'AblaFahita\\Http\\Controllers'], function () {
require app_path() . '/Http/routes/api.php';
});
return $app;
}
示例4: setUp
public function setUp()
{
parent::createApplication();
$this->rules = LugarRequest::$rules;
$this->messages = LugarRequest::$messages;
}
示例5: setUp
public function setUp()
{
parent::createApplication();
Artisan::call('migrate:refresh');
}
示例6: setUp
public function setUp()
{
parent::createApplication();
$this->modelMock = Mockery::mock('App\\Cliente');
$this->requestMock = Mockery::mock('App\\Http\\Requests\\ClienteRequest');
}
示例7: setUp
public function setUp()
{
parent::createApplication();
$this->rules = PenalizacionTorneoRequest::$rules;
$this->messages = PenalizacionTorneoRequest::$messages;
}
示例8: createApplication
/**
* Creates the application.
*
* @return Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
return parent::createApplication('frontend-testing');
}
示例9: setUp
public function setUp()
{
parent::createApplication();
}
示例10: setUp
public function setUp()
{
parent::createApplication();
$this->rules = PlantillaTorneoRequest::$rules;
$this->messages = PlantillaTorneoRequest::$messages;
}
示例11: setUp
public function setUp()
{
parent::createApplication();
$this->modelMock = Mockery::mock('App\\Torneo');
}