BUGFIX: SolrVersionedTest_Index causing crash in unit tests when Phockito is not installed

This commit is contained in:
UndefinedOffset 2016-06-16 11:50:21 -03:00
parent 5ced034b33
commit 6ff50fede9
1 changed files with 16 additions and 16 deletions

View File

@ -182,6 +182,22 @@ class SolrVersionedTest_Index extends SolrIndex
}
}
/**
* Non-sitetree versioned dataobject
*/
class SolrIndexVersionedTest_Object extends DataObject implements TestOnly {
private static $extensions = array(
'Versioned'
);
private static $db = array(
'Title' => 'Varchar',
'Content' => 'Text',
'TestText' => 'Varchar',
);
}
if (!class_exists('Phockito')) {
return;
}
@ -215,19 +231,3 @@ class SolrDocumentMatcher extends Hamcrest_BaseMatcher
return true;
}
}
/**
* Non-sitetree versioned dataobject
*/
class SolrIndexVersionedTest_Object extends DataObject implements TestOnly {
private static $extensions = array(
'Versioned'
);
private static $db = array(
'Title' => 'Varchar',
'Content' => 'Text',
'TestText' => 'Varchar',
);
}