Skip to content

Commit 8800c03

Browse files
authored
Merge pull request #771 from lucatume/v4-fix-generate-wpunit-command
Avoid duplicated definition issue in GenerateWPUnit command"
2 parents 2755e14 + c51e259 commit 8800c03

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [unreleased] Unreleased
66

7+
### Fixed
8+
9+
- Avoid duplicated definition issue in `GenerateWPUnit` command.
10+
711
## [4.4.1] 2024-12-09;
812

913
### Fixed

src/Command/GenerateWPUnit.php

-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ protected function getGenerator(array $config, string $class): AbstractGenerator
135135
protected function configure(): void
136136
{
137137
$this->setDefinition([
138-
new InputArgument('suite', InputArgument::REQUIRED, 'suite where tests will be put'),
139-
new InputArgument('class', InputArgument::REQUIRED, 'class name'),
140138
new InputOption('config', 'c', InputOption::VALUE_OPTIONAL, 'Use custom path for config'),
141139
]);
142140
parent::configure();

src/ManagedProcess/MysqlServer.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -446,17 +446,17 @@ public function getArchiveUrl(): string
446446

447447
if ($operatingSystem === MachineInformation::OS_DARWIN) {
448448
return $architecture === 'arm64' ?
449-
'https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.2-macos14-arm64.tar.gz'
450-
: 'https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.2-macos14-x86_64.tar.gz';
449+
'https://downloads.mysql.com/archives/get/p/23/file/mysql-8.4.3-macos14-arm64.tar.gz'
450+
: 'https://downloads.mysql.com/archives/get/p/23/file/mysql-8.4.3-macos14-x86_64.tar.gz';
451451
}
452452

453453
if ($operatingSystem === MachineInformation::OS_LINUX) {
454454
return $architecture === 'arm64' ?
455-
'https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.2-linux-glibc2.17-aarch64-minimal.tar.xz'
456-
: 'https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.2-linux-glibc2.17-x86_64-minimal.tar.xz';
455+
'https://downloads.mysql.com/archives/get/p/23/file/mysql-8.4.3-linux-glibc2.17-aarch64-minimal.tar'
456+
: 'https://downloads.mysql.com/archives/get/p/23/file/mysql-8.4.3-linux-glibc2.17-x86_64-minimal.tar';
457457
}
458458

459-
return 'https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.2-winx64.zip';
459+
return 'https://downloads.mysql.com/archives/get/p/23/file/mysql-8.4.3-winx64.zip';
460460
}
461461

462462
public function getArchivePath(bool $normalize = false): string

0 commit comments

Comments
 (0)