tests/CmsManager/CmsPageManagerTest.php
/**
     * Test finding an non-existing container in a page does create a new block.
     */
Test finding an non-existing container in a page does create a new block.
Test finding an non - existing container in a page does create a new block .
public function testFindNonExistingContainerCreatesNewBlock(): void
    {
        $page = new Page();
        $container = $this->manager->findContainer('newcontainer', $page);
        static::assertInstanceOf(PageBlockInterface::class, $container, 'should be a block');
        static::assertSame('newcontainer', $container->getSetting('code'));
    }
public function testFindNonExistingContainerCreatesNewBlock ( ) : void { $ page = new Page ( ) ; $ container = $ this -> manager -> findContainer ( 'newcontainer' , $ page ) ; static :: assertInstanceOf ( PageBlockInterface :: class , $ container , 'should be a block' ) ; static :: assertSame ( 'newcontainer' , $ container -> getSetting ( 'code' ) ) ; }
Test finding an non-existing container in a page does create a new block.
Test finding an non - existing container in a page does create a new block .