1
0
Fork 0
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:
Nicolas Hart 2017-07-29 00:30:22 +02:00
parent 233eb91be4
commit e1b33efb3d
8 changed files with 78 additions and 77 deletions

View file

@ -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');
}

View file

@ -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());
}
}

View file

@ -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());
}
}