diff --git a/modules/authcache_commerce/authcache_commerce.test b/modules/authcache_commerce/authcache_commerce.test
index 0faf69c..caf28fa 100644
--- a/modules/authcache_commerce/authcache_commerce.test
+++ b/modules/authcache_commerce/authcache_commerce.test
@@ -4,6 +4,11 @@
  * Test cases for the Authcache Commerce module.
  */
 
+// If Commerce module is not exist, don't provide support.
+if (!class_exists('CommerceCartTestCase')) {
+  return;
+}
+
 /**
  * Tests for markup substitution.
  */
