mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
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:
parent
3f13791404
commit
e7e5912f07
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user