‪TYPO3CMS  11.5
RecordHistoryTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
22 
23 class ‪RecordHistoryTest extends FunctionalTestCase
24 {
26 
30  protected function ‪setUp(): void
31  {
32  parent::setUp();
33  $this->importCSVDataSet(__DIR__ . '/../Fixtures/sys_history.csv');
34  $this->subject = new ‪RecordHistory();
35  }
36 
38  {
39  return [
40  'da625644-8e50-47ee-8c11-bb19552a79e4' => ['da625644-8e50-47ee-8c11-bb19552a79e4', 2],
41  '3479dc73-7bc8-4d3b-a8bc-0370a68cedd2' => ['3479dc73-7bc8-4d3b-a8bc-0370a68cedd2', 1],
42  ];
43  }
44 
51  public function ‪findEventsForCorrelationWorksAsExpected(string $correlationId, int $amountOfEntries): void
52  {
53  self::assertCount($amountOfEntries, $this->subject->findEventsForCorrelation($correlationId));
54  }
55 }
‪TYPO3\CMS\Backend\Tests\Functional\History\RecordHistoryTest\setUp
‪setUp()
Definition: RecordHistoryTest.php:30
‪TYPO3\CMS\Backend\Tests\Functional\History\RecordHistoryTest\$subject
‪RecordHistory $subject
Definition: RecordHistoryTest.php:25
‪TYPO3\CMS\Backend\Tests\Functional\History\RecordHistoryTest\findEventsForCorrelationWorksAsExpectedDataProvider
‪findEventsForCorrelationWorksAsExpectedDataProvider()
Definition: RecordHistoryTest.php:37
‪TYPO3\CMS\Backend\Tests\Functional\History
Definition: RecordHistoryStoreTest.php:18
‪TYPO3\CMS\Backend\Tests\Functional\History\RecordHistoryTest
Definition: RecordHistoryTest.php:24
‪TYPO3\CMS\Backend\History\RecordHistory
Definition: RecordHistory.php:32
‪TYPO3\CMS\Backend\Tests\Functional\History\RecordHistoryTest\findEventsForCorrelationWorksAsExpected
‪findEventsForCorrelationWorksAsExpected(string $correlationId, int $amountOfEntries)
Definition: RecordHistoryTest.php:51