Ejemplo n.º 1
0
 public function testBlock()
 {
     $block = new BlockController();
     $block->setIcon('sample_icon');
     $this->assertEquals('sample_icon', $block->getIcon());
     $block->setTitle('sample_title');
     $this->assertEquals('sample_title', $block->getTitle());
     $block->setBadge('4');
     $this->assertEquals('4', $block->getBadge());
     $this->assertEquals('kendo-layout', $block->getCssClassName());
     $block->setNoRender(false);
     $this->assertFalse($block->isNoRender());
     $block->setNoRender(true);
     $this->assertTrue($block->isNoRender());
 }