1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 00:35:59 +00:00
pixelfed/tests/CreatesApplication.php

27 lines
482 B
PHP
Raw Normal View History

2018-04-15 23:56:48 +00:00
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
2022-12-21 21:21:07 +00:00
use Illuminate\Foundation\Application;
2018-08-28 03:07:36 +00:00
use Illuminate\Support\Facades\Hash;
2018-04-15 23:56:48 +00:00
trait CreatesApplication
{
/**
* Creates the application.
*
2022-12-21 21:21:07 +00:00
* @return Application
2018-04-15 23:56:48 +00:00
*/
public function createApplication()
{
2022-12-21 21:21:07 +00:00
$app = require __DIR__ . '/../bootstrap/app.php';
2018-04-15 23:56:48 +00:00
$app->make(Kernel::class)->bootstrap();
Hash::driver('bcrypt')->setRounds(4);
return $app;
}
}