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); }