
Hi Pascal,
The
Test
property is referring to a public static property of type
TestFactory
in the
fflib_SObjectDomain
class.
The
TestFactory
class has a property called
Database
of type
MockDatabase
and this class has a public method that returns boolean as shown below.
public Boolean hasRecords()
{
return records!=null && records.size()>0 || oldRecords!=null && oldRecords.size()>0;
}
The code you are referring to is calling this method.