mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 09:36:13 +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 * @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');
} }
} }