silverstripe-framework/tests/php
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
..
Control API Replace SS_HOST with SS_BASE_URL 2017-04-20 22:28:57 +12:00
Core Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
Dev NEW: Allow SapphireTest::objFromFixture() to accept either table or class 2017-05-05 10:53:49 +12:00
Forms New namespaced i18n keys 2017-04-28 14:59:42 +12:00
i18n Merge pull request #6850 from robbieaverill/bugfix/i18n-lang-region-same 2017-05-01 08:41:44 +12:00
ORM unit test cleanup 2017-04-27 09:18:38 +12:00
Security Ran upgrader for lang files 2017-04-28 14:59:42 +12:00
View Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00