silverstripe-framework/tests
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
..
behat API Moved iShouldSeeAButton to behat-extension 2017-01-10 14:39:24 +13:00
bootstrap FIX Ensure that mysite test boostrap configuration is loaded after core and before the database connection 2017-04-11 14:32:53 +12:00
php NEW: Allow SapphireTest::objFromFixture() to accept either table or class 2017-05-05 10:53:49 +12:00
phpcs Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
bootstrap.php FIX Ensure that mysite test boostrap configuration is loaded after core and before the database connection 2017-04-11 14:32:53 +12:00
phpcs_runner.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00