From a1cf83ccbc9ad3b2d1cac1c696600926698f3e28 Mon Sep 17 00:00:00 2001 From: Karsten Nowak Date: Tue, 30 Jul 2024 20:30:50 +0200 Subject: [PATCH] [TASK] Rename test functions Related #1120 --- Tests/Functional/Command/CreateTestDataCommandTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/Functional/Command/CreateTestDataCommandTest.php b/Tests/Functional/Command/CreateTestDataCommandTest.php index 0f28823..0cffd5b 100644 --- a/Tests/Functional/Command/CreateTestDataCommandTest.php +++ b/Tests/Functional/Command/CreateTestDataCommandTest.php @@ -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'); } - }