From 49bec4629ba5284faa4eebcbb8eb34fdf4833803 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Thu, 15 Oct 2015 12:57:57 -0400 Subject: [PATCH] Add wrong password test to FavoritesTest. --- .../src/VuFindTest/Mink/FavoritesTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php index bb7bf117716..d33ad4fb91b 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/FavoritesTest.php @@ -161,9 +161,12 @@ class FavoritesTest extends \VuFindTest\Unit\MinkTestCase // - empty $page->find('css', '.modal-body .btn.btn-primary')->click(); $this->assertNotNull($page->find('css', $username)); - // - TODO wrong - // - for real + // - wrong $page->find('css', $username)->setValue(self::$hash); + $page->find('css', $password)->setValue('superwrong'); + $page->find('css', '.modal-body .btn.btn-primary')->click(); + $this->assertNotNull($page->find('css', $username)); + // - for real $page->find('css', $password)->setValue('test'); $page->find('css', '.modal-body .btn.btn-primary')->click(); // Make sure we don't have Favorites because we have another populated list -- GitLab