<?php
use Illuminate\Foundation\Testing\DatabaseTransactions;
+use Symfony\Component\DomCrawler\Crawler;
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
use DatabaseTransactions;
/**
- * The base URL to use while testing the application.
+ * The base URL of the application.
*
* @var string
*/
- protected $baseUrl = 'http://localhost';
- private $admin;
+ public $baseUrl = 'http://localhost';
/**
* Creates the application.
{
$app = require __DIR__.'/../bootstrap/app.php';
- $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
+ $app->make(Kernel::class)->bootstrap();
return $app;
}
-
- public function asAdmin()
- {
- if($this->admin === null) {
- $this->admin = \BookStack\User::find(1);
- }
- return $this->actingAs($this->admin);
- }
}