/** * @test */ public function getConfigurationForPathWithWildcardTest() { $uri = 'my_secondext-my_model/34/'; $request = new Request(NULL, $uri); $testConfiguration = array('path' => 'my_secondext-*', 'read' => 'deny', 'write' => 'allow'); $configuration = $this->fixture->getConfigurationForPath($request->path()); $this->assertEquals($testConfiguration, $configuration); }
/** * Returns the tags for the current request * * @return array[string] */ protected function _getTags() { $currentPath = $this->currentRequest->path(); list($vendor, $extension, $model) = Utility::getClassNamePartsForPath($currentPath); return array($vendor . '_' . $extension . '_' . $model, $extension . '_' . $model, $currentPath); }