mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
1691e90fbd
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. |
||
---|---|---|
.. | ||
BulkLoaderResultTest | ||
CsvBulkLoaderTest | ||
DeprecationTest | ||
DevAdminControllerTest | ||
FixtureBlueprintTest | ||
FixtureFactoryTest | ||
TaskRunnerTest | ||
YamlFixtureTest | ||
BacktraceTest.php | ||
BulkLoaderResultTest.php | ||
CSSContentParserTest.php | ||
CsvBulkLoaderTest.php | ||
CsvBulkLoaderTest.yml | ||
CSVParserTest.php | ||
DeprecationTest.php | ||
DevAdminControllerTest.php | ||
FixtureBlueprintTest.php | ||
FixtureFactoryTest.php | ||
MySQLDatabaseConfigurationHelperTest.php | ||
SapphireTestTest.php | ||
TaskRunnerTest.php | ||
YamlFixtureTest.php | ||
YamlFixtureTest.yml |