diff --git a/src/SilverStripe/BehatExtension/Context/FixtureContext.php b/src/SilverStripe/BehatExtension/Context/FixtureContext.php index 6911752..7935c28 100644 --- a/src/SilverStripe/BehatExtension/Context/FixtureContext.php +++ b/src/SilverStripe/BehatExtension/Context/FixtureContext.php @@ -409,7 +409,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) || !is_a($class, 'DataObject', true)) { return $class; }