diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php
index 927e1a070bb1f4f12671cbd16314c28e03bfea20..fe8efc8e19ccd839590bb35c81d193df10fcca61 100644
--- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php
+++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php
@@ -200,6 +200,8 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase
      * Select all of the items currently in the cart lightbox.
      *
      * @param Element $page Page element
+     *
+     * @return void
      */
     protected function selectAllItemsInCart(Element $page)
     {
@@ -365,4 +367,31 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase
 
         $session->stop();
     }
+
+    /**
+     * Test that the print control works.
+     *
+     * @return void
+     */
+    public function testCartPrint()
+    {
+        $session = $this->getMinkSession();
+        $session->start();
+        $page = $this->setUpGenericCartTest($session);
+        $button = $page->find('css', '.cart-controls button[name=print]');
+
+        // First try clicking without selecting anything:
+        $button->click();
+        $this->checkForNonSelectedMessage($page);
+
+        // Now do it for real -- we should get redirected.
+        $this->selectAllItemsInCart($page);
+        $button->click();
+        list(, $params) = explode('?', $session->getCurrentUrl());
+        $this->assertEquals(
+            'print=true&id[]=VuFind|testsample1&id[]=VuFind|testsample2', $params
+        );
+
+        $session->stop();
+    }
 }