PlayerMockCoreGuiUtils
The CoreGui events a mock stands in for. StarterGui:GetCore(coreName) answers some names with a
BindableEvent the CoreGui fires -- the only notice production gets that a friendship changed --
and only a real client has one, so the mock keeps its own for a test to fire.
Reached through the "StarterGui.GetCore" method domain, so production asks for a core the same
way against a mock as against the engine (see CoreGuiUtils.tryToGetCore).
Functions
getCoreEvent
PlayerMockCoreGuiUtils.getCoreEvent(coreName: string--
a CoreGui event name, e.g. "PlayerFriendedEvent"
) → BindableEventReturns the mock's stand-in for a CoreGui event, created on first ask so a test and the production code observing it meet on the same BindableEvent whichever asks first.
Use PlayerMock.callMethod with "StarterGui.GetCore".