[TASK] Tests: Include all NOT NULL fields in EXT:extbase fixtures 30/42630/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 14 Aug 2015 09:00:09 +0000 (11:00 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 18 Aug 2015 14:51:41 +0000 (16:51 +0200)
The fixtures used by the functional tests are incomplete and don't
contain all fields that are defined as NOT NULL in the database schema.
Add the missing information to the fixtures to successfully create the
test fixtures in MySQL strict mode.

Resolves: #69072
Releases: master
Change-Id: I793ca8d0cb07ae2c36c1bc74cb473b01ac45594f
Reviewed-on: http://review.typo3.org/42630
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/blogs-with-fe_groups.xml
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/blogs.xml
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/categories.xml
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/fe_groups.xml
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/posts.xml
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/tags.xml
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/translated-posts.xml

index 70b8194..5dd016a 100644 (file)
@@ -4,6 +4,9 @@
                <uid>1</uid>
                <pid>1</pid>
                <title>Blog1</title>
+               <description>Blog1 Description</description>
+               <logo></logo>
+               <l18n_diffsource></l18n_diffsource>
                <deleted>0</deleted>
                <posts>0</posts>
        </tx_blogexample_domain_model_blog>
@@ -11,6 +14,9 @@
                <uid>2</uid>
                <pid>1</pid>
                <title>Blog2</title>
+               <description>Blog2 Description</description>
+               <logo></logo>
+               <l18n_diffsource></l18n_diffsource>
                <fe_group>1</fe_group>
                <deleted>0</deleted>
                <posts>0</posts>
@@ -19,6 +25,9 @@
                <uid>3</uid>
                <pid>1</pid>
                <title>Blog3</title>
+               <description>Blog3 Description</description>
+               <logo></logo>
+               <l18n_diffsource></l18n_diffsource>
                <fe_group>2</fe_group>
                <deleted>0</deleted>
                <posts>0</posts>
index cacd881..1da71af 100644 (file)
@@ -4,6 +4,9 @@
                <uid>1</uid>
                <pid>0</pid>
                <title>Blog1</title>
+               <description>Blog1 Description</description>
+               <logo></logo>
+               <l18n_diffsource></l18n_diffsource>
                <deleted>0</deleted>
                <posts>10</posts>
        </tx_blogexample_domain_model_blog>
@@ -11,6 +14,9 @@
                <uid>2</uid>
                <pid>0</pid>
                <title>Blog2</title>
+               <description>Blog2 Description</description>
+               <logo></logo>
+               <l18n_diffsource></l18n_diffsource>
                <deleted>0</deleted>
                <posts>1</posts>
        </tx_blogexample_domain_model_blog>
index 86b109d..9811d2f 100644 (file)
@@ -4,24 +4,32 @@
                <uid>1</uid>
                <pid>0</pid>
                <title>Category 1</title>
+               <l10n_diffsource></l10n_diffsource>
+               <description></description>
                <deleted>0</deleted>
        </sys_category>
        <sys_category>
                <uid>2</uid>
                <pid>0</pid>
                <title>Category 2</title>
+               <l10n_diffsource></l10n_diffsource>
+               <description></description>
                <deleted>0</deleted>
        </sys_category>
        <sys_category>
                <uid>3</uid>
                <pid>0</pid>
                <title>Category 3</title>
+               <l10n_diffsource></l10n_diffsource>
+               <description></description>
                <deleted>0</deleted>
        </sys_category>
        <sys_category>
                <uid>4</uid>
                <pid>0</pid>
                <title>Category 4</title>
+               <l10n_diffsource></l10n_diffsource>
+               <description></description>
                <deleted>0</deleted>
        </sys_category>
-</dataset>
\ No newline at end of file
+</dataset>
index ff91af4..78e2997 100644 (file)
@@ -4,12 +4,18 @@
                <uid>1</uid>
                <pid>1</pid>
                <title>Group A</title>
+               <subgroup></subgroup>
+               <TSconfig></TSconfig>
+               <description></description>
                <deleted>0</deleted>
        </fe_groups>
        <fe_groups>
                <uid>2</uid>
                <pid>1</pid>
                <title>Group B</title>
+               <subgroup></subgroup>
+               <TSconfig></TSconfig>
+               <description></description>
                <deleted>0</deleted>
        </fe_groups>
 </dataset>
index 21ab360..598f423 100644 (file)
@@ -8,6 +8,8 @@
                <tags>10</tags>
                <categories>3</categories>
                <title>Post1</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>1</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -18,6 +20,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post2</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>2</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -28,6 +32,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post3</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>3</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -38,6 +44,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post4</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>4</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -48,6 +56,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post5</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>5</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -58,6 +68,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post6</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>6</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -68,6 +80,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post7</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>7</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -78,6 +92,8 @@
                <tags>1</tags>
                <categories>0</categories>
                <title>Post8</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>8</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
                <blog>1</blog>
                <tags>1</tags>
                <categories>0</categories>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <title>Post9</title>
                <sorting>9</sorting>
                <deleted>0</deleted>
                <tags>1</tags>
                <categories>0</categories>
                <title>Post10</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>10</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
                <tags>0</tags>
                <categories>0</categories>
                <title>post1</title>
+               <content>Lorem ipsum...</content>
+               <l18n_diffsource></l18n_diffsource>
                <sorting>11</sorting>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
index 82436c1..40597be 100644 (file)
@@ -4,6 +4,7 @@
                <uid>1</uid>
                <pid>0</pid>
                <posts>10</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag1</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -11,6 +12,7 @@
                <uid>2</uid>
                <pid>0</pid>
                <posts>2</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag2</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -18,6 +20,7 @@
                <uid>3</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag3</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -25,6 +28,7 @@
                <uid>4</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag4</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -32,6 +36,7 @@
                <uid>5</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag5</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -39,6 +44,7 @@
                <uid>6</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag6</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -46,6 +52,7 @@
                <uid>7</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag7</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -53,6 +60,7 @@
                <uid>8</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag8</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -60,6 +68,7 @@
                <uid>9</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag9</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -67,7 +76,8 @@
                <uid>10</uid>
                <pid>0</pid>
                <posts>1</posts>
+               <l18n_diffsource></l18n_diffsource>
                <name>Tag10</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
-</dataset>
\ No newline at end of file
+</dataset>
index b2e8ca3..a028532 100644 (file)
@@ -4,15 +4,19 @@
                <uid>1</uid>
                <pid>1</pid>
                <blog>1</blog>
+               <content>Lorem ipsum</content>
                <title>Post1</title>
                <deleted>0</deleted>
+               <l18n_diffsource></l18n_diffsource>
        </tx_blogexample_domain_model_post>
        <tx_blogexample_domain_model_post>
                <uid>2</uid>
                <pid>1</pid>
                <l18n_parent>1</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
                <sys_language_uid>1</sys_language_uid>
                <blog>1</blog>
+               <content>Lorem ipsum</content>
                <title>B EN:Post1</title>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
                <uid>3</uid>
                <pid>1</pid>
                <l18n_parent>1</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
                <sys_language_uid>2</sys_language_uid>
                <blog>1</blog>
+               <content>Lorem ipsum</content>
                <title>GR:Post1</title>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
                <uid>4</uid>
                <pid>1</pid>
                <blog>1</blog>
+               <content>Lorem ipsum</content>
                <title>Post2</title>
                <deleted>0</deleted>
+               <l18n_diffsource></l18n_diffsource>
        </tx_blogexample_domain_model_post>
        <tx_blogexample_domain_model_post>
                <uid>5</uid>
                <pid>1</pid>
                <l18n_parent>4</l18n_parent>
+               <l18n_diffsource></l18n_diffsource>
                <sys_language_uid>1</sys_language_uid>
                <blog>1</blog>
+               <content>Lorem ipsum</content>
                <title>A EN:Post2</title>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_post>
@@ -45,7 +55,9 @@
                <uid>6</uid>
                <pid>1</pid>
                <blog>1</blog>
+               <content>Lorem ipsum</content>
                <title>Post3</title>
                <deleted>0</deleted>
+               <l18n_diffsource></l18n_diffsource>
        </tx_blogexample_domain_model_post>
 </dataset>