-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Execute UpdateLanguageCode only once #3684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MorrisJobke
commented
Mar 2, 2017
- followup to Change language code from fi_FI to fi #1377
|
@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nickvergessen to be a potential reviewer. |
| * {@inheritdoc} | ||
| */ | ||
| public function run(IOutput $output) { | ||
| if ($this->config->getAppValue('core', 'languageCodesUpdatedNC12', false)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just compare the version number instead of introducing a new config that will then be around forever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also do this in other NC11 repair steps 🙈
Maybe we namespace them to easily clean up. But I will change this one to the version number too.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
18c733b to
0b12eb0
Compare
|
|
||
| public function testSecondRun() { | ||
| /** @var IOutput|\PHPUnit_Framework_MockObject_MockObject $outputMock */ | ||
| $outputMock = $this->createMock(IOutput::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add something like:
$outputMock->expects($this->never())
->method('info');Otherwise this test always passes, even when I raise the version number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it myself
Signed-off-by: Joas Schilling <coding@schilljs.com>