spec\LdapTools\Hydrator\ArrayHydratorSpec::it_should_allow_multiple_schema_names_pointing_to_the_same_ldap_attribute PHP Метод

it_should_allow_multiple_schema_names_pointing_to_the_same_ldap_attribute() публичный Метод

    function it_should_allow_multiple_schema_names_pointing_to_the_same_ldap_attribute()
    {
        $schema = new LdapObjectSchema('ad', 'user');
        $schema->setAttributeMap(['firstName' => 'givenName', 'lastName' => 'sn', 'created' => 'whenCreated', 'createdInt' => 'whenCreated']);
        $this->setLdapObjectSchema($schema);
        $this->setSelectedAttributes(['givenName', 'lastName', 'created', 'createdInt']);
        $this->hydrateFromLdap($this->ldapEntries[0])->shouldHaveKeys(['created', 'createdInt']);
    }