public function testHomepageContent() { $this->setRequest(Request::create('/')); $response = $this->controller()->homepage($this->getRequest()); $globals = $response->getGlobals(); $this->assertTrue($response instanceof TemplateResponse); $this->assertInstanceOf(Content::class, $globals['record']); }