silverstripe-framework/tests/php/Dev
Sam Minnee 1691e90fbd NEW: Allow SapphireTest::objFromFixture() to accept either table or class
Right now SapphireTest::objFromFixture() requires a class as the first
argument. This is fine when your fixture file uses classes as the keys,
but if populating a fixture via tables, objFromFixture() won’t work.

This patch lets you specify either the table name or the class name as
the key.

The benefit here is that you can build fixtures as raw inserts, which is
substantially quicker, and is likely to be a useful tool in building
more efficient test suites.
2017-05-05 10:53:49 +12:00
..
BulkLoaderResultTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
CsvBulkLoaderTest API Substitute Zend_Currency with NumberFormatter based solution 2017-02-09 15:28:59 +13:00
DeprecationTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
DevAdminControllerTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FixtureBlueprintTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FixtureFactoryTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
TaskRunnerTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
YamlFixtureTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
BacktraceTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
BulkLoaderResultTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
CSSContentParserTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
CsvBulkLoaderTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
CsvBulkLoaderTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
CSVParserTest.php Respect PHPUnit method visibility 2017-03-24 16:23:03 +13:00
DeprecationTest.php Respect PHPUnit method visibility 2017-03-24 16:23:03 +13:00
DevAdminControllerTest.php Respect PHPUnit method visibility 2017-03-24 16:23:03 +13:00
FixtureBlueprintTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
FixtureFactoryTest.php NEW: Allow SapphireTest::objFromFixture() to accept either table or class 2017-05-05 10:53:49 +12:00
MySQLDatabaseConfigurationHelperTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
SapphireTestTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
TaskRunnerTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
YamlFixtureTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
YamlFixtureTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00