Exemplo n.º 1
0
 public function testImplicitExplicitSlugSetting()
 {
     $p = new \Cx\Core\ContentManager\Model\Entity\Page();
     $p->setTitle('test');
     $this->assertEquals('test', $p->getSlug());
     $p->setTitle('thisshouldntaffecttheslug');
     $this->assertEquals('test', $p->getSlug());
     $p->setSlug('butThisShould');
     $this->assertEquals('butThisShould', $p->getSlug());
 }