Skip to content

Conversation

@bastianallgeier
Copy link
Member

No description provided.

@bastianallgeier bastianallgeier marked this pull request as draft January 21, 2026 16:51

public function testDescription(): void
{
$this->assertSame('Upgrades the Kirby core', Upgrade::description());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we are doing ourselves a favor to check the exact strings here and also for argument descriptions. That means we always have to adapt tests just if that string changes. I think it could be fine to just assert for is string or so - that a description is set, not necessarily the exact words.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I think we hardly ever change the description and it would have helped to have this before moving everything to commands.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But also there, it would have helped us just as much to assert if it still returns a string. Not necessarily the exact spelling of a string. Working on the ParaTest switch, I really noticed that we are not doing us the best favor to always test for such exact string/labels (here a little less problematic as it doesn't depend on i18n as in the core). But if you feel it should stay like this, it can ofc.

Base automatically changed from refact/remove-command-classes to develop January 25, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants