Cannot mock 'get name' #15172
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by cvl.c...@gmail.com
Hi!
It is not possible to mock this:
var task = new TaskMock();
task.when(callsTo('get name')).alwaysReturn('test');
print(task.name);
-> prints null.
It conflicts with the internal "Mock" name attribute.
Guess there will be similar problems with the other defined methods and attributes in the Mock class.
The text was updated successfully, but these errors were encountered: