/** * @test */ public function setCreatorForBackendUserSetsCreator() { $creatorFixture = new \R3H6\BeuserManager\Domain\Model\BackendUser(); $this->subject->setCreator($creatorFixture); $this->assertAttributeEquals($creatorFixture, 'creator', $this->subject); }
/** * action disable * * @param \R3H6\BeuserManager\Domain\Model\BackendUser $backendUser * @return void */ public function disableAction(\R3H6\BeuserManager\Domain\Model\BackendUser $backendUser) { $backendUser->setDisable(true); $this->backendUserRepository->update($backendUser); $this->addFlashMessage('Enable'); $this->redirect('list'); }