spec\LdapTools\Object\LdapObjectSpec::it_should_be_able_to_remove_multiple_values_at_once PHP Метод

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

    function it_should_be_able_to_remove_multiple_values_at_once()
    {
        $attributes = $this->attributes;
        $attributes['emailAddress'] = ['[email protected]', '[email protected]', '[email protected]', '[email protected]'];
        $this->refresh($attributes);
        $this->getEmailAddress()->shouldBeEqualTo($attributes['emailAddress']);
        $this->removeEmailAddress(...['[email protected]', '[email protected]']);
        $this->getEmailAddress()->shouldNotContain('[email protected]');
        $this->getEmailAddress()->shouldNotContain('[email protected]');
        $this->remove('emailAddress', '[email protected]', '[email protected]');
        $this->getEmailAddress()->shouldBeEqualTo([]);
    }
LdapObjectSpec