-
Notifications
You must be signed in to change notification settings - Fork 139
Improvements to Test package #311
Comments
The DDL is indeed a holdover from Platform development when the CMS was still heavily supported, but the structure of the DDL itself shouldn't really matter for testing as far as whether it's the CMS schema or that of the issue tracker. What would you suggest for the DDL?
There's a part of me that thinks IMO |
DDLI'd suggest an option to use own DDL, the question is how. I'd probably abstract file loading part to new method: /**
* Load your DDL file here
*/
public function getDdl()
{
return file_get_contents(__DIR__ . '/Schema/ddl.sql');
} Unfortunately there is slight difference between Install SQL file and testing one. First one is usually written in MySQL, second one should be in SQLite, which are incompatible.
|
Maybe it's worth investigating if the DDL schema could be written in a XML file using a (undocumented) DatabaseImporter and DatabaseExporter classes. I never checked these. |
TestDatabase::setUpBeforeClass
loads up a unit test DDL file which is probably intended for Joomla CMSTestDatabase
,TestConfig
andWebInspector
TestConfig
needed in this package?The text was updated successfully, but these errors were encountered: