forked from wallabag/wallabag
Better rendering for all core commands
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user