mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Better rendering for all core commands
This commit is contained in:
parent
233eb91be4
commit
e1b33efb3d
8 changed files with 78 additions and 77 deletions
|
@ -55,7 +55,8 @@ class ExportCommandTest extends WallabagCoreTestCase
|
|||
'username' => 'admin',
|
||||
]);
|
||||
|
||||
$this->assertContains('Exporting 5 entrie(s) for user « admin »... Done', $tester->getDisplay());
|
||||
$this->assertContains('Exporting 5 entrie(s) for user admin...', $tester->getDisplay());
|
||||
$this->assertContains('Done', $tester->getDisplay());
|
||||
$this->assertFileExists('admin-export.json');
|
||||
}
|
||||
|
||||
|
|
|
@ -56,9 +56,9 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
|||
'username' => 'admin',
|
||||
]);
|
||||
|
||||
$this->assertContains('Username : admin', $tester->getDisplay());
|
||||
$this->assertContains('Email : bigboss@wallabag.org', $tester->getDisplay());
|
||||
$this->assertContains('Display name : Big boss', $tester->getDisplay());
|
||||
$this->assertContains('Username: admin', $tester->getDisplay());
|
||||
$this->assertContains('Email: bigboss@wallabag.org', $tester->getDisplay());
|
||||
$this->assertContains('Display name: Big boss', $tester->getDisplay());
|
||||
$this->assertContains('2FA activated: no', $tester->getDisplay());
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,6 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
|||
'username' => 'admin',
|
||||
]);
|
||||
|
||||
$this->assertContains('Display name : Bug boss', $tester->getDisplay());
|
||||
$this->assertContains('Display name: Bug boss', $tester->getDisplay());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@ class TagAllCommandTest extends WallabagCoreTestCase
|
|||
'username' => 'admin',
|
||||
]);
|
||||
|
||||
$this->assertContains('Tagging entries for user « admin »... Done', $tester->getDisplay());
|
||||
$this->assertContains('Tagging entries for user admin...', $tester->getDisplay());
|
||||
$this->assertContains('Done', $tester->getDisplay());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue