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
This commit is contained in:
parent
3928919964
commit
002193e114
@ -409,7 +409,7 @@ class FixtureContext extends BehatContext
|
|||||||
$type = trim($type);
|
$type = trim($type);
|
||||||
|
|
||||||
// Try direct mapping
|
// Try direct mapping
|
||||||
$class = str_replace(' ', '', ucfirst($type));
|
$class = str_replace(' ', '', ucwords($type));
|
||||||
if(class_exists($class) || !is_a($class, 'DataObject', true)) {
|
if(class_exists($class) || !is_a($class, 'DataObject', true)) {
|
||||||
return $class;
|
return $class;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user