Kraken\_Unit\Util\Factory\FactoryPluginTest::testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered PHP Method

testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered() public method

    public function testApiUnregisterPlugin_UnregistersPlugin_WhenPluginIsRegistered()
    {
        $mock = $this->createCallableMock();
        $mock->expects($this->once())->method('__invoke');
        $plugin = $this->createFactoryPlugin(function () {
        }, $mock);
        $factory = $this->createFactory();
        $plugin->registerPlugin($factory)->unregisterPlugin($factory);
    }