mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BehatFixtureFactory 5.3.8 compat (wrong usage of is_a())
This commit is contained in:
parent
b506eb1b29
commit
c2c8498c64
@ -9,7 +9,7 @@ class BehatFixtureFactory extends \FixtureFactory {
|
||||
|
||||
// Copy identifier to some visible property unless its already defined.
|
||||
// Exclude files, since they generate their own named based on the file path.
|
||||
if(!is_a($name, 'File', true)) {
|
||||
if(!$name != 'File' && !is_subclass_of($name, 'File')) {
|
||||
foreach(array('Name', 'Title') as $fieldName) {
|
||||
if(singleton($name)->hasField($fieldName) && !isset($data[$fieldName])) {
|
||||
$data[$fieldName] = $identifier;
|
||||
|
Loading…
Reference in New Issue
Block a user