示例#1
0
 /**
  * Return the pagetitle
  *
  * @return string
  */
 public function getPageTitle()
 {
     return $this->modx->lexicon('chunk') . ': ' . $this->chunk->get('name');
 }
示例#2
0
 /**
  * @param string $content
  * @dataProvider providerSetContent
  * @depends testGetContent
  */
 public function testSetContent($content)
 {
     $this->chunk->setContent($content);
     $this->assertEquals($content, $this->chunk->get('snippet'));
 }