/**
  * It should be possible to disable translation even if the helper has a
  * translator
  *
  */
 public function testShouldBeAbleToDisableTranslation()
 {
     $translator = $this->_getTranslator();
     $this->_helper->setTranslator($translator);
     $this->_helper->setUseTranslator(false);
     $expected = file_get_contents($this->_files . '/breadcrumbs.html');
     $this->assertEquals($expected, $this->_helper->toString());
     $this->_helper->setTranslator(null);
 }
 /**
  * It should be possible to filter out pages based on ACL roles
  *
  */
 public function testShouldBeAbleToUseAclRoles()
 {
     $oldAcl = $this->_helper->getAcl();
     $oldRole = $this->_helper->getRole();
     $acl = $this->_getAcl();
     $this->_helper->setAcl($acl['acl']);
     $this->_helper->setRole($acl['role']);
     $expected = file_get_contents($this->_files . '/breadcrumbs_acl.html');
     $this->assertEquals($expected, $this->_helper->toString());
     $this->_helper->setAcl($oldAcl);
     $this->_helper->setRole($oldRole);
 }