Skip to content
This repository has been 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

Open
froemken opened this issue Mar 1, 2022 · 3 comments
Open

Records of ext_tables_static+adt.sql were inserted just once #151

froemken opened this issue Mar 1, 2022 · 3 comments

Comments

@froemken
Copy link

froemken commented Mar 1, 2022

Hello,

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');
}

Nice greetings

Stefan

@oliverklee
Copy link
Contributor

This ticket seems to be related to #105 and #106.

@oliverklee
Copy link
Contributor

And this code snippet seems familiar to me. Is it from one of my extensions? :-)

@lolli42
Copy link

lolli42 commented 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants