Remove the polls menu, keep the single commands
CI / Deploy / PHP 8.5 (push) Successful in 1m2s
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / test (push) Successful in 3s
CI / Deploy / deploy (push) Skipped

bin/cake polls list|show|delete|remind|cleanup stay as they are.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 13:58:26 +01:00
1 parent 664088e139
commit 349359dad3
6 files changed
+4 -220

No files matched your search

@@ -118,53 +118,6 @@ class PollsCommandsTest extends TestCase
$this->assertExitError();
}
public function testMenuQuits(): void
{
$this->exec('polls', ['0']);
$this->assertExitSuccess();
$this->assertOutputContains('Umfragen verwalten');
}
public function testMenuListsAndOpensPollWithLink(): void
{
[$poll, $token] = $this->createPoll('Menü-Umfrage', 'menu@example.org');
$this->exec('polls', ['1', '4', (string)$poll->id, '2', '0', '0']);
$this->assertExitSuccess();
$this->assertOutputContains('menu@example.org');
$this->assertOutputContains('https://plenario.test/admin/' . $token);
$this->exec('polls', ['4', 'ZZZZZZ', '0']);
$this->assertExitSuccess();
$this->assertErrorContains('nicht gefunden');
}
public function testMenuDeleteNeedsConfirmation(): void
{
[$poll] = $this->createPoll();
$this->exec('polls', ['4', (string)$poll->id, '3', 'n', '0', '0']);
$this->assertSame(1, $this->pollsTable()->find()->where(['id' => $poll->id])->count());
$this->exec('polls', ['4', (string)$poll->id, '3', 'y', '0']);
$this->assertSame(0, $this->pollsTable()->find()->where(['id' => $poll->id])->count());
}
public function testMenuCleanupAsksBeforeDeleting(): void
{
[$old] = $this->createPoll();
$this->age($old->id, 100);
$this->exec('polls', ['6', 'n', '0']);
$this->assertSame(1, $this->pollsTable()->find()->count());
$this->exec('polls', ['6', 'y', '0']);
$this->assertSame(0, $this->pollsTable()->find()->count());
$this->exec('polls', ['6', '0']);
$this->assertOutputContains('Nichts zu tun.');
}
public function testReminderGoesOutOnceInTheLastDaysBeforeExpiry(): void
{
[$young, $youngToken] = $this->createPoll('Jung', 'jung@example.org');