goog.testing.MethodMock
Namespacegoog.testing.MethodMock(scope, functionName, opt_strictness)
Mocks an existing function. Creates a goog.testing.FunctionMock and registers it in the given scope with the name specified by functionName.
scope
{Object
}
functionName
{string
}
opt_strictness
{number
=}
goog.testing.MockInterface
}
.$tearDown()
Resets the global function that we mocked back to its original state. @this {goog.testing.MockInterface}