From 26f032938fe24f387be62799f678c43bd8a8aabc Mon Sep 17 00:00:00 2001
From: Alex Arnaud <alex.arnaud@biblibre.com>
Date: Tue, 22 Sep 2015 14:15:04 +0200
Subject: [PATCH] Dev #26120 - Check null category while fixing parent
 categories follow-up: Add test

---
 tests/library/Class/Import/Typo3Fixture.php | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/tests/library/Class/Import/Typo3Fixture.php b/tests/library/Class/Import/Typo3Fixture.php
index f9d42dccab4..7fb438db98b 100644
--- a/tests/library/Class/Import/Typo3Fixture.php
+++ b/tests/library/Class/Import/Typo3Fixture.php
@@ -77,17 +77,15 @@ class MockTypo3DB {
   }
 
   public function findAllNewsCatSince($update_date) {
-    return [ ['title' => 'Jeux',
+    return [['title' => 'Jeux',
              'uid' => 777,
-             'parent_category' => 99
-      ],
-        ['title' => 'd\'hiver',
+             'parent_category' => 99],
+            ['title' => 'd\'hiver',
              'uid' => 81,
-             'parent_category' => 99
-            ],
-
-    ];
-
+             'parent_category' => 99],
+            ['title' => '',
+               'uid' => 617,
+             'parent_category' => 99]];
   }
 
 
-- 
GitLab