/**
  * @test
  */
 public function setNameForStringSetsName()
 {
     $this->subject->setName('Conceived at T3CON10');
     $this->assertAttributeEquals('Conceived at T3CON10', 'name', $this->subject);
 }
 /**
  * action update
  * @param \MUM\BjrFreizeit\Domain\Model\Tags $tags
  * @return void
  *
  */
 public function updateAction(\MUM\BjrFreizeit\Domain\Model\Tags $tags)
 {
     $redirectParams = array();
     //array('passwordChange' => '',    'organization' => $organization,'organizationChange' => ''       );
     $args = $this->request->getArguments();
     if ($tags->_isNew() || $tags->_isDirty()) {
         if ($tags->_isNew()) {
             $tags->setPid($this->settings['pidOrganizationFolder']);
             $this->tagsRepository->add($tags);
             //it is not persistent already, we have to do it!
             $persistenceManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager');
             $persistenceManager->persistAll();
             //now organization ist persistent
             $GLOBALS['TSFE']->fe_user->setKey("ses", "tagChange", 'Der Tag <strong>' . $tags->getName() . '</strong> wurde neu angelegt.');
         } else {
             $this->tagsRepository->update($tags);
             $GLOBALS['TSFE']->fe_user->setKey("ses", "tagChange", 'Der Tag <strong>' . $tags->getName() . '</strong> wurde geändert.');
         }
     }
     $redirectParams['tags'] = $tags;
     $this->redirect('successUpdate', 'Tags', NULL, $redirectParams);
 }