[BUGFIX] Category fields are not available in Functional Tests 38/27238/3
authorOliver Hader <oliver@typo3.org>
Sat, 1 Feb 2014 15:47:19 +0000 (16:47 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 1 Feb 2014 18:56:31 +0000 (19:56 +0100)
The category fields are defined dynamically and added to the
extension table configuration. Since the database definitions
are created before modifying this configuration, the category
fields are not available in Functional Tests.

Resolves: #55560
Releases: 6.2
Change-Id: Ie59e544309184d475428bc298f126c2776b4b5e7
Reviewed-on: https://review.typo3.org/27238
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExport/pages-and-ttcontent.xml

index bb99cd6..7e63f46 100644 (file)
@@ -91,8 +91,8 @@ class FunctionalTestCaseBootstrapUtility {
                $this->setUpPackageStates($coreExtensionsToLoad, $testExtensionsToLoad);
                $this->setUpBasicTypo3Bootstrap();
                $this->setUpTestDatabase();
-               $this->createDatabaseStructure();
                \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadExtensionTables(TRUE);
+               $this->createDatabaseStructure();
        }
 
        /**
index 42d6cbb..4dced36 100644 (file)
@@ -7,7 +7,7 @@
                                        <uid>1</uid>
                                        <pid>0</pid>
                                        <title>Root</title>
-                                       <size>1649</size>
+                                       <size>1675</size>
                                        <relations index="rels" type="array">
                                        </relations>
                                        <softrefs type="array">
@@ -17,7 +17,7 @@
                                        <uid>2</uid>
                                        <pid>1</pid>
                                        <title>Dummy 1-2</title>
-                                       <size>1654</size>
+                                       <size>1680</size>
                                        <relations index="rels" type="array">
                                        </relations>
                                        <softrefs type="array">
@@ -29,7 +29,7 @@
                                        <uid>1</uid>
                                        <pid>1</pid>
                                        <title>Test content</title>
-                                       <size>2042</size>
+                                       <size>2068</size>
                                        <relations index="rels" type="array">
                                        </relations>
                                        <softrefs type="array">
                                <field index="fe_login_mode">0</field>
                                <field index="backend_layout"></field>
                                <field index="backend_layout_next_level"></field>
+                               <field index="categories">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                        </related>
                                <field index="fe_login_mode">0</field>
                                <field index="backend_layout"></field>
                                <field index="backend_layout_next_level"></field>
+                               <field index="categories">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                        </related>
                                <field index="l18n_diffsource" type="NULL"></field>
                                <field index="selected_categories" type="NULL"></field>
                                <field index="category_field"></field>
+                               <field index="categories">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                        </related>