Commit Graph

13 Commits

Author SHA1 Message Date
Robbie Averill b448bfcd20 NEW Add config for shutdown flush, remove references to Object and update tests 2017-11-14 17:05:30 +13:00
Brett Tasker a8588b2fd8 Merge branch 'compat/4' into compat4/btasker 2017-04-27 00:24:46 +12:00
Brett Tasker 73e4888715 SS 4.0 - Upgrade tests to SilverStripe 4.0 & Replace Phockito 2017-04-26 22:53:00 +12:00
Marco Hermo e422ad48c9 Use PHP5.5 class name resolution operator 2017-04-25 21:11:29 +12:00
Marco Hermo 8228c762c9 Explicit namespace definition on YAML files 2017-04-24 09:05:47 +12:00
Brett Tasker 43dd2ba398 SS 4.0 - Replace inst()->update with modify()->set and hasOne with hasOneComponent 2017-04-22 21:31:34 +12:00
Brett Tasker 0ee34e49e2 Fix PHP errors in test 2017-04-21 13:26:07 +12:00
Brett Tasker 0ebf6e6220 Second push of Test changes + namespacing 2017-04-21 13:18:37 +12:00
Brett Tasker ddbab95e3f Namespacing for tests 2017-04-21 12:23:27 +12:00
Damian Mooyman e5fbdf9d42 BUG fix issues with search variants applying to more than one class 2016-04-26 12:43:31 +12:00
madmatt 665490dfde MINOR: Don't include Hamcrest globally so it doesn't conflict with PHPUnit
PHPUnit now includes matching functions like `any()` and `anything()` outside of a namespace, which conflicts with `Phockito` that does the same thing when calling `Phockito::include_hamcrest(true)`.

This test in particular breaks Behat, because the file includes a class (`SolrReindexTest_Item`) that extends `DataObject`, meaning that this file gets included very early in the initialisation process.

Instead, we can just set `Phockito::include_hamcrest(false)` and use the full path to the Hamcrest matching functions instead (e.g. `\Hamcrest_Matchers::anything()`).
2015-11-27 12:43:33 +13:00
helpfulrobot 314feddd48 Converted to PSR-2 2015-11-21 19:19:20 +13:00
Damian Mooyman 1683f776bd API QueuedJob support for Solr_Reindex
API Incremental clear and re-index of records rather than clearing all records from SolrIndex up front
2015-07-28 12:46:23 +12:00