diff --git a/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php b/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php
index 52888bb6493371c0f7cc0931436b4478544c5aec..a9c106259f71ca39158bf5af079ac2619b858fd2 100644
--- a/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php
+++ b/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php
@@ -216,7 +216,7 @@ class AbonneControllerPretsListThreePretsTest extends AbonneControllerPretsListT
 
   /** @test */
   public function tableShouldHaveClassTableSorter() {
-    $this->assertXPath('//table[@class="tablesorter"]');
+    $this->assertXPath('//table[@class="tablesorter loans"]', $this->_response->getBody());
   }