Eccube\Tests\Web\Admin\Setting\System\AuthorityControllerTest::newTestAuthorityRole PHP Method

newTestAuthorityRole() private method

private newTestAuthorityRole ( ) : Eccube\Entity\AuthorityRole
return Eccube\Entity\AuthorityRole
    private function newTestAuthorityRole()
    {
        $TestCreator = $this->app['eccube.repository.member']->find(1);
        $AuthorityRole = new \Eccube\Entity\AuthorityRole();
        $Authority = $this->app['eccube.repository.master.authority']->find(0);
        $AuthorityRole->setAuthority($Authority);
        $AuthorityRole->setDenyUrl('/abab');
        $AuthorityRole->setCreator($TestCreator);
        $this->app['orm.em']->persist($AuthorityRole);
        $this->app['orm.em']->flush();
        return $AuthorityRole;
    }