Skip to content

Commit 1d9a779

Browse files
committed
[TASK] Use newly introduced extension selection and cleanup old code
1 parent cf17b3f commit 1d9a779

File tree

3 files changed

+2
-130
lines changed

3 files changed

+2
-130
lines changed

Classes/Command/AcceptanceTestsCommand.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use Symfony\Component\Console\Input\InputInterface;
1616
use Symfony\Component\Console\Output\OutputInterface;
17-
use Symfony\Component\Console\Style\SymfonyStyle;
1817
use Symfony\Component\Filesystem\Exception\IOException;
1918
use Symfony\Component\Filesystem\Filesystem;
2019
use Symfony\Component\Finder\Finder;
@@ -32,11 +31,6 @@ class AcceptanceTestsCommand extends AbstractCommand
3231
*/
3332
protected $filesystem;
3433

35-
/**
36-
* @var SymfonyStyle $io
37-
*/
38-
protected $io;
39-
4034
/**
4135
* @var PackageInterface $package
4236
*/
@@ -54,8 +48,7 @@ protected function configure(): void
5448
*/
5549
protected function execute(InputInterface $input, OutputInterface $output): int
5650
{
57-
$this->io = new SymfonyStyle($input, $output);
58-
$this->package = $this->askForPackage($this->io);
51+
$this->package = $this->packageResolver->resolvePackage($this->askForExtensionKey());
5952

6053
$packageKey = $this->package->getPackageKey();
6154
$targetPackagePath = $this->package->getPackagePath();
@@ -70,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7063
$finder = GeneralUtility::makeInstance(Finder::class);
7164

7265
$codeTemplatePath = '/Resources/Private/CodeTemplates/AcceptanceTests';
73-
$templatePath = $this->getPackageResolver()->resolvePackage('b13/make')->getPackagePath() . $codeTemplatePath;
66+
$templatePath = $this->packageResolver->resolvePackage('b13/make')->getPackagePath() . $codeTemplatePath;
7467

7568
$this->filesystem->mkdir([
7669
$targetPackagePath . '/Tests/Acceptance/Fixtures',

Classes/Command/RunTestsCommand.php

Lines changed: 0 additions & 114 deletions
This file was deleted.

Configuration/Services.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,3 @@ services:
5151
command: 'make:acceptance'
5252
description: 'Create files required to run acceptance tests'
5353
schedulable: false
54-
55-
B13\Make\Command\RunTestsCommand:
56-
tags:
57-
- name: 'console.command'
58-
command: 'make:runtests'
59-
description: 'Setup runTests.sh to run tests, linter, cgl in a Docker environment'
60-
schedulable: false

0 commit comments

Comments
 (0)