mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-09 02: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 a4ba103993
commit a1cf83ccbc

View file

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