/** * Tests the building of a full page variant with no main content set. * * @covers ::build */ public function testBuildWithoutMainContent() { $display_variant = $this->setUpDisplayVariant(); $this->blockRepository->expects($this->once())->method('getVisibleBlocksPerRegion')->willReturn([]); $expected = ['#cache' => ['tags' => ['config:block_list'], 'contexts' => [], 'max-age' => -1], 'content' => ['system_main' => [], 'messages' => ['#weight' => -1000, '#type' => 'status_messages']]]; $this->assertSame($expected, $display_variant->build()); }