subject = new TestPreviewerConfigurationMapper(); } public function testMap(): void { $ref = new TestPreviewerConfig( [ 'category' => $this->getProviders(), 'plugins' => $this->getPlugins() ], $this->getConfig() ); $this->assertEquals($ref, $this->subject->map($this->getProviders(), $this->getPlugins(), $this->getConfig())); } private function getPlugins(): array { return [ new TestPlugin('id1', 'module', 'category', ['active' => true]), new TestPlugin('id2', 'module', 'category', ['active' => true]), ]; } private function getProviders(): array { return [ new ProviderModule('idp1', 'module', 'category', ['active' => true]), new ProviderModule('idp2', 'module', 'category', ['active' => true]), ]; } private function getConfig(): array { return ['exitButton' => false]; } }