protected function setUp() { parent::setUp(); /** @var Cache $fixture */ $fixture = $this->objectManager->get('Cundd\\Rest\\Cache\\Cache'); $fixture->setCacheLifeTime(10); $fixture->setExpiresHeaderLifeTime(5); $this->fixture = $fixture; }
protected function setUp() { parent::setUp(); $configurationProvider = $this->objectManager->get('Cundd\\Rest\\Configuration\\TypoScriptConfigurationProvider'); $this->fixture = $this->objectManager->get('Cundd\\Rest\\Access\\ConfigurationBasedAccessController'); $settings = array('paths' => array('1.' => array('path' => 'all', 'read' => 'allow', 'write' => 'deny'), '2.' => array('path' => 'my_ext-my_model', 'read' => 'allow', 'write' => 'allow'), '3.' => array('path' => 'my_secondext-*', 'read' => 'deny', 'write' => 'allow'))); $configurationProvider->setSettings($settings); $request = new Request(NULL, 'my_ext-my_model/4/usergroup'); $this->fixture->setRequest($request); }
public function setUp() { parent::setUp(); $this->fixture = $this->objectManager->get('Cundd\\Rest\\DataProvider\\DataProvider'); }