Esempio n. 1
0
 public function setUp()
 {
     $this->pageinst = new Page();
     $this->pageinst->setName("test");
     $this->pageinst->setTitle("test");
     $this->pageinst->setPublished(true);
     $this->pageinst->setPublic(true);
     $block = new ContentBlock();
     $block->setName("testblock");
     $block->setContent("<h1>This is a block</h1>");
     $block->setBlockStyle(new CenteredBlockStyle());
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setBlockOrder(1);
     $this->pageinst->addPageBlock($pageBlock);
 }
Esempio n. 2
0
 public function testGetHTML()
 {
     $this->contentblockinst->setBlockStyle(new \Core\CenteredBlockStyle());
     $this->assertTrue(strpos($this->contentblockinst->getHTML(null), $this->htmlcontent) >= 0);
 }