public function testGetComputedAttributeKeyCategoryHandle()
 {
     $ak1 = new \Concrete\Core\Attribute\Key\CollectionKey();
     $ak2 = new \Concrete\Core\Attribute\Key\UserKey();
     $ak3 = new \Concrete\Core\Attribute\Key\FileKey();
     $ak4 = new EcommerceProductKey();
     $this->assertEquals('collection', $ak1->getComputedAttributeKeyCategoryHandle());
     $this->assertEquals('user', $ak2->getComputedAttributeKeyCategoryHandle());
     $this->assertEquals('file', $ak3->getComputedAttributeKeyCategoryHandle());
     $this->assertEquals('ecommerce_product', $ak4->getComputedAttributeKeyCategoryHandle());
 }
Example #2
0
 public static function add($at, $args, $pkg = false)
 {
     return Concrete\Core\Attribute\Key\CollectionKey::add($at, $args, $pkg);
 }