Skip to content

Conversation

@MorrisJobke
Copy link
Member

@mention-bot
Copy link

@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nickvergessen to be a potential reviewer.

@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Mar 2, 2017
@MorrisJobke MorrisJobke added this to the Nextcloud 12.0 milestone Mar 2, 2017
* {@inheritdoc}
*/
public function run(IOutput $output) {
if ($this->config->getAppValue('core', 'languageCodesUpdatedNC12', false)) {
Copy link
Member

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?

Copy link
Member Author

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>
@MorrisJobke MorrisJobke force-pushed the run-lang-update-only-once branch from 18c733b to 0b12eb0 Compare March 3, 2017 03:53

public function testSecondRun() {
/** @var IOutput|\PHPUnit_Framework_MockObject_MockObject $outputMock */
$outputMock = $this->createMock(IOutput::class);
Copy link
Member

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

Copy link
Member

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>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@rullzer rullzer merged commit 8e27b81 into master Mar 3, 2017
@rullzer rullzer deleted the run-lang-update-only-once branch March 3, 2017 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants