assertIsA($operation, 'core_kernel_rules_Operation'); $firstOperand = new core_kernel_classes_Property(RulesRdf::PROPERTY_OPERATION_FIRST_OP); $secondOperand = new core_kernel_classes_Property(RulesRdf::PROPERTY_OPERATION_SECOND_OP); $operatorProperty = new core_kernel_classes_Property(RulesRdf::PROPERTY_OPERATION_OPERATOR); $operator = $operation->getUniquePropertyValue($operatorProperty); $this->assertIsA($operator, 'core_kernel_classes_Resource'); $this->assertEquals($operator->getUri(), RulesRdf::INSTANCE_OPERATOR_ADD); $term1 = $operation->getUniquePropertyValue($firstOperand); $this->assertIsA($term1, 'core_kernel_classes_Resource'); $this->assertEquals($term1->getUri(), $constant5->getUri()); $term2 = $operation->getUniquePropertyValue($secondOperand); $this->assertIsA($term2, 'core_kernel_classes_Resource'); $this->assertEquals($term2->getUri(), $constant12->getUri()); $constant5->delete(); $constant12->delete(); $operation->delete(); } }