[CLEANUP] Remove deprecated repository constructor
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Tests / Unit / Report / ExtensionStatusTest.php
1 <?php
2 namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Report;
3 use TYPO3\CMS\Extensionmanager\Report;
4
5 /***************************************************************
6 * Copyright notice
7 *
8 * (c) 2010-2013 Christian Kuhn <lolli@schwarzbu.ch>
9 * All rights reserved
10 *
11 * This script is part of the TYPO3 project. The TYPO3 project is
12 * free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * The GNU General Public License can be found at
18 * http://www.gnu.org/copyleft/gpl.html.
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27
28 /**
29 * Test case
30 *
31 * @author Christian Kuhn <lolli@schwarzbu.ch>
32 */
33 class ExtensionStatusTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
34
35 /**
36 * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
37 */
38 protected $mockObjectManager;
39
40 /**
41 * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository
42 */
43 protected $mockRepositoryRepository;
44
45 public function setUp() {
46 $this->mockObjectManager = $this->getMock('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface');
47 /** @var $mockRepositoryRepository \TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository|\PHPUnit_Framework_MockObject_MockObject */
48 $this->mockRepositoryRepository = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\RepositoryRepository', array(), array($this->mockObjectManager));
49 }
50
51 /**
52 * @test
53 */
54 public function extensionStatusImplementsStatusProviderInterface() {
55 $reportMock = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus');
56 $this->assertInstanceOf('TYPO3\\CMS\\Reports\\StatusProviderInterface', $reportMock);
57 }
58
59 /**
60 * @test
61 */
62 public function getStatusReturnsArray() {
63 $report = new Report\ExtensionStatus();
64 $this->assertInternalType('array', $report->getStatus());
65 }
66
67 /**
68 * @test
69 */
70 public function getStatusReturnArrayContainsFiveEntries() {
71 $report = new Report\ExtensionStatus();
72 $this->assertSame(5, count($report->getStatus()));
73 }
74
75 /**
76 * @test
77 */
78 public function getStatusReturnArrayContainsInstancesOfReportsStatusStatus() {
79 $report = new Report\ExtensionStatus();
80 $resultStatuses = $report->getStatus();
81 foreach($resultStatuses as $status) {
82 $this->assertInstanceOf('TYPO3\\CMS\\Reports\\Status', $status);
83 }
84 }
85
86 /**
87 * @test
88 */
89 public function getStatusCallsGetMainRepositoryStatusForMainRepositoryStatusResult() {
90 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject */
91 $mockReport = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('getMainRepositoryStatus'));
92 $mockReport
93 ->expects($this->once())
94 ->method('getMainRepositoryStatus')
95 ->will($this->returnValue('foo'));
96 $result = $mockReport->getStatus();
97 $this->assertSame('foo', $result['mainRepositoryStatus']);
98 }
99
100 /**
101 * @test
102 */
103 public function getMainRepositoryStatusReturnsErrorStatusIfRepositoryIsNotFound() {
104 $this->mockRepositoryRepository
105 ->expects($this->once())
106 ->method('findOneTypo3OrgRepository')
107 ->will($this->returnValue(NULL));
108
109 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
110 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
111 $mockReport->_set('repositoryRepository', $this->mockRepositoryRepository);
112
113 /** @var $result \TYPO3\CMS\Reports\Status */
114 $result = $mockReport->_call('getMainRepositoryStatus');
115 $this->assertSame(\TYPO3\CMS\Reports\Status::ERROR, $result->getSeverity());
116 }
117
118 /**
119 * @test
120 */
121 public function getMainRepositoryStatusReturnsNoticeIfRepositoryUpdateIsLongerThanSevenDaysAgo() {
122 /** @var $mockRepositoryRepository \TYPO3\CMS\Extensionmanager\Domain\Model\Repository|\PHPUnit_Framework_MockObject_MockObject */
123 $mockRepository = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Repository');
124 $mockRepository
125 ->expects($this->once())
126 ->method('getLastUpdate')
127 ->will($this->returnValue(new \DateTime('-8 days')));
128
129 $this->mockRepositoryRepository
130 ->expects($this->once())
131 ->method('findOneTypo3OrgRepository')
132 ->will($this->returnValue($mockRepository));
133
134 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
135 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
136 $mockReport->_set('repositoryRepository', $this->mockRepositoryRepository);
137
138 /** @var $result \TYPO3\CMS\Reports\Status */
139 $result = $mockReport->_call('getMainRepositoryStatus');
140 $this->assertSame(\TYPO3\CMS\Reports\Status::NOTICE, $result->getSeverity());
141 }
142
143 /**
144 * @test
145 */
146 public function getMainRepositoryStatusReturnsOkIfUpdatedLessThanSevenDaysAgo() {
147 /** @var $mockRepositoryRepository \TYPO3\CMS\Extensionmanager\Domain\Model\Repository|\PHPUnit_Framework_MockObject_MockObject */
148 $mockRepository = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Repository');
149 $mockRepository
150 ->expects($this->once())
151 ->method('getLastUpdate')
152 ->will($this->returnValue(new \DateTime('-6 days')));
153
154 $this->mockRepositoryRepository
155 ->expects($this->once())
156 ->method('findOneTypo3OrgRepository')
157 ->will($this->returnValue($mockRepository));
158
159 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
160 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
161 $mockReport->_set('repositoryRepository', $this->mockRepositoryRepository);
162
163 /** @var $result \TYPO3\CMS\Reports\Status */
164 $result = $mockReport->_call('getMainRepositoryStatus');
165 $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $result->getSeverity());
166 }
167
168 /**
169 * @test
170 */
171 public function getSecurityStatusOfExtensionsReturnsOkForLoadedExtensionIfNoInsecureExtensionIsLoaded() {
172 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
173 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
174 $mockTerObject
175 ->expects($this->any())
176 ->method('getVersion')
177 ->will($this->returnValue('1.0.6'));
178 $mockTerObject
179 ->expects($this->atLeastOnce())
180 ->method('getReviewState')
181 ->will($this->returnValue(0));
182 $mockExtensionList = array(
183 'enetcache' => array(
184 'installed' => TRUE,
185 'terObject' => $mockTerObject
186 ),
187 );
188 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
189 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
190 $mockListUtility
191 ->expects($this->once())
192 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
193 ->will($this->returnValue($mockExtensionList));
194
195 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
196 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
197 $mockReport->_set('listUtility', $mockListUtility);
198
199 $result = $mockReport->_call('getSecurityStatusOfExtensions');
200 /** @var $loadedResult \TYPO3\CMS\Reports\Status */
201 $loadedResult = $result->loaded;
202 $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $loadedResult->getSeverity());
203 }
204
205 /**
206 * @test
207 */
208 public function getSecurityStatusOfExtensionsReturnsErrorForLoadedExtensionIfInsecureExtensionIsLoaded() {
209 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
210 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
211 $mockTerObject
212 ->expects($this->any())
213 ->method('getVersion')
214 ->will($this->returnValue('1.0.6'));
215 $mockTerObject
216 ->expects($this->atLeastOnce())
217 ->method('getReviewState')
218 ->will($this->returnValue(-1));
219 $mockExtensionList = array(
220 'enetcache' => array(
221 'installed' => TRUE,
222 'terObject' => $mockTerObject
223 ),
224 );
225 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
226 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
227 $mockListUtility
228 ->expects($this->once())
229 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
230 ->will($this->returnValue($mockExtensionList));
231
232 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
233 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
234 $mockReport->_set('listUtility', $mockListUtility);
235
236 $result = $mockReport->_call('getSecurityStatusOfExtensions');
237 /** @var $loadedResult \TYPO3\CMS\Reports\Status */
238 $loadedResult = $result->loaded;
239 $this->assertSame(\TYPO3\CMS\Reports\Status::ERROR, $loadedResult->getSeverity());
240 }
241
242 /**
243 * @test
244 */
245 public function getSecurityStatusOfExtensionsReturnsOkForExistingExtensionIfNoInsecureExtensionExists() {
246 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
247 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
248 $mockTerObject
249 ->expects($this->any())
250 ->method('getVersion')
251 ->will($this->returnValue('1.0.6'));
252 $mockTerObject
253 ->expects($this->atLeastOnce())
254 ->method('getReviewState')
255 ->will($this->returnValue(0));
256 $mockExtensionList = array(
257 'enetcache' => array(
258 'terObject' => $mockTerObject
259 ),
260 );
261 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
262 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
263 $mockListUtility
264 ->expects($this->once())
265 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
266 ->will($this->returnValue($mockExtensionList));
267
268 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
269 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
270 $mockReport->_set('listUtility', $mockListUtility);
271
272 $result = $mockReport->_call('getSecurityStatusOfExtensions');
273 /** @var $existingResult \TYPO3\CMS\Reports\Status */
274 $existingResult = $result->existing;
275 $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $existingResult->getSeverity());
276 }
277
278 /**
279 * @test
280 */
281 public function getSecurityStatusOfExtensionsReturnsErrorForExistingExtensionIfInsecureExtensionExists() {
282 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
283 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
284 $mockTerObject
285 ->expects($this->any())
286 ->method('getVersion')
287 ->will($this->returnValue('1.0.6'));
288 $mockTerObject
289 ->expects($this->atLeastOnce())
290 ->method('getReviewState')
291 ->will($this->returnValue(-1));
292 $mockExtensionList = array(
293 'enetcache' => array(
294 'terObject' => $mockTerObject
295 ),
296 );
297 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
298 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
299 $mockListUtility
300 ->expects($this->once())
301 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
302 ->will($this->returnValue($mockExtensionList));
303
304 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
305 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
306 $mockReport->_set('listUtility', $mockListUtility);
307
308 $result = $mockReport->_call('getSecurityStatusOfExtensions');
309 /** @var $existingResult \TYPO3\CMS\Reports\Status */
310 $existingResult = $result->existing;
311 $this->assertSame(\TYPO3\CMS\Reports\Status::WARNING, $existingResult->getSeverity());
312 }
313
314 /**
315 * @test
316 */
317 public function getSecurityStatusOfExtensionsReturnsOkForLoadedExtensionIfNoOutdatedExtensionIsLoaded() {
318 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
319 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
320 $mockTerObject
321 ->expects($this->any())
322 ->method('getVersion')
323 ->will($this->returnValue('1.0.6'));
324 $mockTerObject
325 ->expects($this->atLeastOnce())
326 ->method('getReviewState')
327 ->will($this->returnValue(0));
328 $mockExtensionList = array(
329 'enetcache' => array(
330 'installed' => TRUE,
331 'terObject' => $mockTerObject
332 ),
333 );
334 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
335 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
336 $mockListUtility
337 ->expects($this->once())
338 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
339 ->will($this->returnValue($mockExtensionList));
340
341 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
342 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
343 $mockReport->_set('listUtility', $mockListUtility);
344
345 $result = $mockReport->_call('getSecurityStatusOfExtensions');
346 /** @var $loadedResult \TYPO3\CMS\Reports\Status */
347 $loadedResult = $result->loadedoutdated;
348 $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $loadedResult->getSeverity());
349 }
350
351 /**
352 * @test
353 */
354 public function getSecurityStatusOfExtensionsReturnsErrorForLoadedExtensionIfOutdatedExtensionIsLoaded() {
355 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
356 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
357 $mockTerObject
358 ->expects($this->any())
359 ->method('getVersion')
360 ->will($this->returnValue('1.0.6'));
361 $mockTerObject
362 ->expects($this->atLeastOnce())
363 ->method('getReviewState')
364 ->will($this->returnValue(-2));
365 $mockExtensionList = array(
366 'enetcache' => array(
367 'installed' => TRUE,
368 'terObject' => $mockTerObject
369 ),
370 );
371 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
372 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
373 $mockListUtility
374 ->expects($this->once())
375 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
376 ->will($this->returnValue($mockExtensionList));
377
378 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
379 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
380 $mockReport->_set('listUtility', $mockListUtility);
381
382 $result = $mockReport->_call('getSecurityStatusOfExtensions');
383 /** @var $loadedResult \TYPO3\CMS\Reports\Status */
384 $loadedResult = $result->loadedoutdated;
385 $this->assertSame(\TYPO3\CMS\Reports\Status::WARNING, $loadedResult->getSeverity());
386 }
387
388 /**
389 * @test
390 */
391 public function getSecurityStatusOfExtensionsReturnsOkForExistingExtensionIfNoOutdatedExtensionExists() {
392 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
393 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
394 $mockTerObject
395 ->expects($this->any())
396 ->method('getVersion')
397 ->will($this->returnValue('1.0.6'));
398 $mockTerObject
399 ->expects($this->atLeastOnce())
400 ->method('getReviewState')
401 ->will($this->returnValue(0));
402 $mockExtensionList = array(
403 'enetcache' => array(
404 'terObject' => $mockTerObject
405 ),
406 );
407 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
408 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
409 $mockListUtility
410 ->expects($this->once())
411 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
412 ->will($this->returnValue($mockExtensionList));
413
414 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
415 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
416 $mockReport->_set('listUtility', $mockListUtility);
417
418 $result = $mockReport->_call('getSecurityStatusOfExtensions');
419 /** @var $existingResult \TYPO3\CMS\Reports\Status */
420 $existingResult = $result->existingoutdated;
421 $this->assertSame(\TYPO3\CMS\Reports\Status::OK, $existingResult->getSeverity());
422 }
423
424 /**
425 * @test
426 */
427 public function getSecurityStatusOfExtensionsReturnsErrorForExistingExtensionIfOutdatedExtensionExists() {
428 /** @var $mockTerObject \TYPO3\CMS\Extensionmanager\Domain\Model\Extension|\PHPUnit_Framework_MockObject_MockObject */
429 $mockTerObject = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Model\\Extension');
430 $mockTerObject
431 ->expects($this->any())
432 ->method('getVersion')
433 ->will($this->returnValue('1.0.6'));
434 $mockTerObject
435 ->expects($this->atLeastOnce())
436 ->method('getReviewState')
437 ->will($this->returnValue(-2));
438 $mockExtensionList = array(
439 'enetcache' => array(
440 'terObject' => $mockTerObject
441 ),
442 );
443 /** @var $mockListUtility \TYPO3\CMS\Extensionmanager\Utility\ListUtility|\PHPUnit_Framework_MockObject_MockObject */
444 $mockListUtility = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Utility\\ListUtility');
445 $mockListUtility
446 ->expects($this->once())
447 ->method('getAvailableAndInstalledExtensionsWithAdditionalInformation')
448 ->will($this->returnValue($mockExtensionList));
449
450 /** @var $mockReport \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface */
451 $mockReport = $this->getAccessibleMock('TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus', array('dummy'));
452 $mockReport->_set('listUtility', $mockListUtility);
453
454 $result = $mockReport->_call('getSecurityStatusOfExtensions');
455 /** @var $existingResult \TYPO3\CMS\Reports\Status */
456 $existingResult = $result->existingoutdated;
457 $this->assertSame(\TYPO3\CMS\Reports\Status::WARNING, $existingResult->getSeverity());
458 }
459 }
460 ?>