You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
Records of ext_tables_static+adt.sql were inserted just once #151
for one of my functional tests I have added static_info_tables to $this->testExtensionsToLoad. All records of ext_tables_static+adt.sql were added successfully, but after tearDown() of first test, all tables of static_info_tables will be truncated, so for all further tests I have to add the needed record on my own.
Would be helpful, I you could load ext_tables_static+adt.sql for each test case.
Current solution:
// Seems that records of ext_tables_static+adt.sql will be included just once for all tests in this class.
// So, for all tests (except the first one), we have to add the record ourselves.
$country = $this->getDatabaseConnection()->selectSingleRow('*', 'static_countries', 'uid=54');
if ($country === false) {
$this->importDataSet(__DIR__ . '/../Fixtures/static_countries.xml');
}
Activity
oliverklee commentedon Mar 1, 2022
This ticket seems to be related to #105 and #106.
oliverklee commentedon Mar 1, 2022
And this code snippet seems familiar to me. Is it from one of my extensions? :-)
lolli42 commentedon Jul 17, 2022
Note: We fixed this in typo3/TF by not importing ext_tables_static+adt.sql at all anymore. See TYPO3/testing-framework#377