mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-21 22:56:12 +01:00

[TASK] Rename test functions

Related #1120
This commit is contained in:
Karsten Nowak 2024-07-30 20:30:50 +02:00
parent 7cce622b3d
commit 2b04b06efa

View file

@ -78,7 +78,7 @@ class CreateTestDataCommandTest extends FunctionalTestCase
/**
* @test
*/
public function testDataGetsCreated(): void
public function createsTestData(): void
{
$this->commandTester->execute([
'pageUid' => '1',
@ -90,7 +90,7 @@ class CreateTestDataCommandTest extends FunctionalTestCase
/**
* @test
*/
public function testDataGetsDeletedBeforeNewDataCreated(): void
public function deletesExistingDataOnGivenPidBeforeCreatingNewData(): void
{
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/ExistingTeas.csv');
$this->commandTester->execute(
@ -106,7 +106,7 @@ class CreateTestDataCommandTest extends FunctionalTestCase
/**
* @test
*/
public function existingDataWillBeNotDeleted(): void
public function doesNotDeleteDataOnOtherPid(): void
{
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/OtherExistingTeas.csv');
$this->commandTester->execute(
@ -115,7 +115,7 @@ class CreateTestDataCommandTest extends FunctionalTestCase
'--delete-data-before' => true,
]
);
self::assertCSVDataSet(__DIR__ . '/Fixtures/Database/TeasAfterDeleteOtherExistingTeas.csv');
}
}