public function testRenderDocumentAttributeWithDefaultDocument() { $this->globals->document = $this->documents['pages/page-2']; $this->assertSame('Doc #2', $this->extension->renderDocumentAttribute($this->twig, 'title')); }