PHP Class spec\LdapTools\AttributeConverter\ConvertGroupMembershipSpec

Inheritance: extends PhpSpec\ObjectBehavior
Exibir arquivo Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$entry
$entryGuid
$entrySid
$expectedResult

Public Methods

Method Description
it_is_initializable ( )
it_should_act_as_a_multivalued_converter ( )
it_should_allow_an_or_filter_for_an_attribute ( $connection )
it_should_convert_a_GUID_back_to_a_dn ( $connection )
it_should_convert_a_LdapObject_back_to_a_dn ( LdapTools\Connection\LdapConnectionInterface $connection )
it_should_convert_a_SID_back_to_a_dn ( $connection )
it_should_convert_a_dn_back_to_a_dn ( $connection )
it_should_convert_a_dn_into_its_common_name ( )
it_should_convert_a_dn_to_a_normal_name ( )
it_should_display_the_dn_from_ldap_if_specified ( )
it_should_error_if_a_LdapObject_is_missing_a_DN ( $connection )
it_should_generate_add_and_remove_operations_on_a_modify_operation ( $connection, BatchModifyOperation $operation ) This is quite the mess. Not sure how to better spec this.
it_should_generate_add_operations_based_off_a_name_guid_sid_and_LdapObject_on_a_create_operation ( $connection, AddOperation $operation )
it_should_generate_operations_to_remove_all_current_groups_and_add_new_ones_on_a_modify_set_operation ( $connection, LdapTools\Operation\LdapOperationInterface $operation )
it_should_generate_operations_to_remove_all_current_groups_on_a_modify_reset_operation ( $connection, LdapTools\Operation\LdapOperationInterface $operation )
it_should_implement_AttributeConverterInterface ( )
it_should_implement_operation_generator_interface ( )
it_should_only_specify_the_original_attribute_to_be_removed_on_modification_or_creation ( )
it_should_throw_an_error_if_no_options_exist_for_the_current_attribute ( $connection )
let ( LdapTools\Connection\LdapConnectionInterface $connection )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_should_act_as_a_multivalued_converter() public method

it_should_allow_an_or_filter_for_an_attribute() public method

it_should_convert_a_GUID_back_to_a_dn() public method

public it_should_convert_a_GUID_back_to_a_dn ( $connection )

it_should_convert_a_LdapObject_back_to_a_dn() public method

public it_should_convert_a_LdapObject_back_to_a_dn ( LdapTools\Connection\LdapConnectionInterface $connection )
$connection LdapTools\Connection\LdapConnectionInterface

it_should_convert_a_SID_back_to_a_dn() public method

public it_should_convert_a_SID_back_to_a_dn ( $connection )

it_should_convert_a_dn_back_to_a_dn() public method

public it_should_convert_a_dn_back_to_a_dn ( $connection )

it_should_convert_a_dn_into_its_common_name() public method

it_should_convert_a_dn_to_a_normal_name() public method

it_should_display_the_dn_from_ldap_if_specified() public method

it_should_error_if_a_LdapObject_is_missing_a_DN() public method

it_should_generate_add_and_remove_operations_on_a_modify_operation() public method

This is quite the mess. Not sure how to better spec this.
public it_should_generate_add_and_remove_operations_on_a_modify_operation ( $connection, BatchModifyOperation $operation )
$operation LdapTools\Operation\BatchModifyOperation

it_should_generate_add_operations_based_off_a_name_guid_sid_and_LdapObject_on_a_create_operation() public method

public it_should_generate_add_operations_based_off_a_name_guid_sid_and_LdapObject_on_a_create_operation ( $connection, AddOperation $operation )
$operation LdapTools\Operation\AddOperation

it_should_generate_operations_to_remove_all_current_groups_and_add_new_ones_on_a_modify_set_operation() public method

public it_should_generate_operations_to_remove_all_current_groups_and_add_new_ones_on_a_modify_set_operation ( $connection, LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

it_should_generate_operations_to_remove_all_current_groups_on_a_modify_reset_operation() public method

public it_should_generate_operations_to_remove_all_current_groups_on_a_modify_reset_operation ( $connection, LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

it_should_implement_AttributeConverterInterface() public method

it_should_implement_operation_generator_interface() public method

it_should_only_specify_the_original_attribute_to_be_removed_on_modification_or_creation() public method

it_should_throw_an_error_if_no_options_exist_for_the_current_attribute() public method

let() public method

public let ( LdapTools\Connection\LdapConnectionInterface $connection )
$connection LdapTools\Connection\LdapConnectionInterface

Property Details

$entry protected_oe property

protected $entry

$entryGuid protected_oe property

protected $entryGuid

$entrySid protected_oe property

protected $entrySid

$expectedResult protected_oe property

protected $expectedResult