function it_should_set_the_scope_based_off_the_schema($connection) { $operation = new QueryOperation('(foo=bar)'); $this->setLdapObjectSchema($this->schema); $this->setLdapConnection($connection); $this->hydrateToLdap($operation)->getScope()->shouldBeEqualTo('subtree'); $this->schema->setScope(QueryOperation::SCOPE['ONELEVEL']); $this->hydrateToLdap($operation)->getScope()->shouldBeEqualTo('onelevel'); }