public function testApiRegisterPlugin_ReturnsFactoryPlugin() { $plugin = $this->createFactoryPlugin(); $factory = $this->createFactory(); $this->assertSame($plugin, $plugin->registerPlugin($factory)); }