mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-20 01:36:14 +02:00

Compare commits

..

No commits in common. "58fd272bc0779dd67a0c773c86229c9f97b0a0c6" and "5e40f6f10525c9186ed0d5ab5312c580738a58a8" have entirely different histories.

4 changed files with 8 additions and 29 deletions

View file

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

View file

@ -1,6 +0,0 @@
"tx_tea_domain_model_tea"
,"uid","pid","title","description","deleted"
,3,1,"Darjeeling","Exists and should be deleted","0"
,4,1,"Earl Grey","Exists and should be deleted","0"
,1,2,"Darjeeling","Which already existed in the system",0
,2,2,"Earl Grey","Which already existed in the system",0
Can't render this file because it has a wrong number of fields in line 2.

View file

@ -0,0 +1,6 @@
"tx_tea_domain_model_tea"
,"uid","pid","title","description","deleted"
,3,1,"Darjeeling","I love that tea!","0"
,4,1,"Earl Grey","A nice tea!","0"
,1,2,"Black tea","I hate that.","0"
,2,2,"Green tea","Is ok.","0"
Can't render this file because it has a wrong number of fields in line 2.

View file

@ -1,6 +0,0 @@
"tx_tea_domain_model_tea"
,"pid","title","description","deleted"
,1,"Darjeeling","I love that tea!",0
,1,"Earl Grey","A nice tea!",0
,2,"Darjeeling","Which already existed in the system",0
,2,"Earl Grey","Which already existed in the system",0
Can't render this file because it has a wrong number of fields in line 2.