. */ declare(strict_types=1); namespace Tests\Feature\Controllers\Admin; use Event; use FireflyIII\Events\AdminRequestedTestMessage; use Log; use Tests\TestCase; /** * Class HomeControllerTest * * @SuppressWarnings(PHPMD.TooManyPublicMethods) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class HomeControllerTest extends TestCase { /** * */ public function setUp() { parent::setUp(); Log::debug(sprintf('Now in %s.', get_class($this))); } /** * @covers \FireflyIII\Http\Controllers\Admin\HomeController::index * @covers \FireflyIII\Http\Controllers\Admin\HomeController::__construct */ public function testIndex() { $this->be($this->user()); $response = $this->get(route('admin.index')); $response->assertStatus(200); // has bread crumb $response->assertSee('