FIX: need to upper-case each word, not just first word

Thanks to @jthomerson
See https://github.com/silverstripe-labs/silverstripe-behat-extension/pull/5
This commit is contained in:
Ingo Schommer 2013-11-15 11:30:10 +01:00
parent 3f13791404
commit e7e5912f07
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ class FixtureContext extends BehatContext
$type = trim($type);
// Try direct mapping
$class = str_replace(' ', '', ucfirst($type));
$class = str_replace(' ', '', ucwords($type));
if(class_exists($class) || !($class == 'DataObject' || is_subclass_of($class, 'DataObject'))) {
return $class;
}