Skip to content

Commit 1bda20c

Browse files
committed
Fixes #494 - removes test case that verified the prior limit
1 parent d7c5bb9 commit 1bda20c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

sfdx-source/apex-common/test/classes/fflib_QueryFactoryTest.cls

-21
Original file line numberDiff line numberDiff line change
@@ -432,27 +432,6 @@ private class fflib_QueryFactoryTest {
432432
System.assertNotEquals(e, null);
433433
}
434434

435-
@isTest
436-
static void addChildQueries_invalidChildRelationshipTooDeep(){
437-
fflib_QueryFactory qf = new fflib_QueryFactory(Contact.SObjectType);
438-
qf.selectField('name');
439-
qf.selectField('email');
440-
qf.setCondition( 'name like \'%test%\'' );
441-
qf.addOrdering( new fflib_QueryFactory.Ordering('Contact','name',fflib_QueryFactory.SortOrder.ASCENDING) ).addOrdering('CreatedDATE',fflib_QueryFactory.SortOrder.DESCENDING);
442-
Schema.DescribeSObjectResult descResult = Contact.SObjectType.getDescribe();
443-
444-
fflib_QueryFactory childQf = qf.subselectQuery(Task.SObjectType);
445-
childQf.selectField('Id');
446-
childQf.selectField('Subject');
447-
Exception e;
448-
try {
449-
fflib_QueryFactory subChildQf = childQf.subselectQuery(Task.SObjectType);
450-
} catch (fflib_QueryFactory.InvalidSubqueryRelationshipException ex) {
451-
e = ex;
452-
}
453-
System.assertNotEquals(e, null);
454-
}
455-
456435
@isTest
457436
static void checkFieldObjectReadSort_success(){
458437
fflib_QueryFactory qf = new fflib_QueryFactory(Contact.SObjectType);

0 commit comments

Comments
 (0)