Bundle - getBundleViewPath() method - return path using namespaced syntax

This commit is contained in:
Meritoo
2017-12-21 23:44:39 +01:00
parent 7d23ff59d1
commit ebbed4825c
4 changed files with 130 additions and 7 deletions

View File

@@ -294,6 +294,11 @@ class RegexTest extends BaseTestCase
self::assertEquals($expected, Regex::isValidBundleName($bundleName));
}
public function testGetBundleNamePattern()
{
self::assertEquals('/^(([A-Z]{1}[a-z0-9]+)((?2))*)(Bundle)$/', Regex::getBundleNamePattern());
}
/**
* Provides name of bundle and information if it's valid name
*