public function setUp() { parent::setUp(); $this->loadAclFixtures(); // register the AclListener under test $this->dispatcher->addSubscriber(new AclListener()); }
public function setUp() { parent::setUp(); /** @var Request $request */ $request = $this->container->get("request"); $this->aclTool = new CustomerGroupAclTool($request, $this->dispatcher); $this->loadAclFixtures(); }
public function setUp() { parent::setUp(); // get a mock XML file loader $this->aclXmlFileloader = $this->getMockBuilder('CustomerGroupAcl\\ACL\\AclXmlFileloader')->setConstructorArgs([new Translator($this->container)])->setMethods(["load"])->getMock(); // register the ModuleListener under test $this->dispatcher->addSubscriber(new ModuleListener($this->aclXmlFileloader)); }
public function setUp() { parent::setUp(); $this->loadAclFixtures(); $this->loop = new CustomerGroupAclLoop($this->container); /** @var CustomerGroupAcl $testGroupAcl */ $testGroupAcl = $this->testCustomerGroupAcls[0]; $this->testArguments = ["acl" => $testGroupAcl->getAclId(), "customer_group" => $testGroupAcl->getCustomerGroupId(), "acl_type" => $testGroupAcl->getType(), "activate" => $testGroupAcl->getActivate()]; }
public function setUp() { parent::setUp(); $this->loadAclFixtures(); $this->loop = new AclLoop($this->container); /** @var Acl $testAcl */ $testAcl = $this->testAcls[0]; $this->testArguments = ["id" => $testAcl->getId(), "module" => $testAcl->getModuleId(), "code" => $testAcl->getCode(), "order" => "id", "lang" => "en_US"]; }
public function setUp() { parent::setUp(); $this->aclXmlFileloader = new AclXmlFileloader(new Translator($this->container)); }