enable container acl checks for calendar tests by default
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 12 Jun 2014 19:14:12 +0000 (21:14 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 10 Sep 2014 11:08:55 +0000 (13:08 +0200)
Change-Id: I2da44420eed154c50a764bc0ac86f1ab564a3376
Reviewed-on: http://gerrit.tine20.com/customers/765
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tests/tine20/ActiveSync/Controller/CalendarTests.php
tests/tine20/Calendar/Controller/EventGrantsTests.php
tests/tine20/Calendar/Controller/MSEventFacadeTest.php
tests/tine20/Calendar/JsonTests.php

index 4f8d5c7..0e5ae89 100644 (file)
@@ -508,6 +508,8 @@ Zeile 3</AirSyncBase:Data>
     {
         parent::setUp();
         
+        Calendar_Controller_Event::getInstance()->doContainerACLChecks(true);
+        
         // replace email to make current user organizer and attendee
         $testConfig = Zend_Registry::get('testConfig');
         $email = ($testConfig->email) ? $testConfig->email : Tinebase_Core::getUser()->accountEmailAddress;
index 8527c2f..8e46ede 100644 (file)
@@ -45,6 +45,7 @@ class Calendar_Controller_EventGrantsTests extends Calendar_TestCase
         $this->_setupTestCalendars();
         
         $this->_uit = Calendar_Controller_Event::getInstance();
+        $this->_uit->doContainerACLChecks(true);
     }
     
     public function tearDown()
index 82323d5..2e3fd0f 100644 (file)
@@ -24,6 +24,8 @@ class Calendar_Controller_MSEventFacadeTest extends Calendar_TestCase
     {
         parent::setUp();
         
+        Calendar_Controller_Event::getInstance()->doContainerACLChecks(true);
+        
         $this->_uit = Calendar_Controller_MSEventFacade::getInstance();
         $this->_uit->setEventFilter(new Calendar_Model_EventFilter(array(
             array('field' => 'attender', 'operator' => 'equals', 'value' => array(
index ae199ec..1f44996 100644 (file)
@@ -29,6 +29,9 @@ class Calendar_JsonTests extends Calendar_TestCase
     public function setUp()
     {
         parent::setUp();
+        
+        Calendar_Controller_Event::getInstance()->doContainerACLChecks(true);
+        
         $this->_uit = new Calendar_Frontend_Json();
     }