[TASK] Tests: Include all NOT NULL fields in CategoryCollection fixtures 48/42648/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Thu, 13 Aug 2015 17:34:23 +0000 (19:34 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 18 Aug 2015 14:03:12 +0000 (16:03 +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 so the fixtures can be successfully inserted
when running in MySQL strict mode.

Resolves: #69031
Releases: master
Change-Id: I0347cae10646e29a62f1d8729a89a4ffed491895
Reviewed-on: http://review.typo3.org/42648
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Tests/Functional/Category/Collection/CategoryCollectionTest.php

index 92c7a62..c75966f 100644 (file)
@@ -290,6 +290,8 @@ class CategoryCollectionTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
                }
                $values = array(
                        'title' => $this->getUniqueId('title'),
+                       'l10n_diffsource' => '',
+                       'description' => '',
                        'is_dummy_record' => 1
                );
                $this->database->exec_INSERTquery('sys_category', $values);