SearchKit - Change @searchable annotation from boolean to option list
[civicrm-core.git] / tests / phpunit / api / v4 / Entity / ConformanceTest.php
index ea870e93bbf3aab9ad356bf816fc175c6d83ff73..43af883e7159ff95f772aa55bbc8786c70171276 100644 (file)
@@ -156,6 +156,11 @@ class ConformanceTest extends UnitTestCase {
     $this->assertNotEmpty($info['title_plural']);
     $this->assertNotEmpty($info['type']);
     $this->assertNotEmpty($info['description']);
+    $this->assertContains($info['searchable'], ['primary', 'secondary', 'none']);
+    // Bridge must be between exactly 2 entities
+    if (in_array('EntityBridge', $info['type'], TRUE)) {
+      $this->assertCount(2, $info['bridge']);
+    }
   }
 
   /**