all() public method

Returns registered adapters.
public all ( ) : array[]
return array[]
Example #1
0
 public function testGetAllAdapters()
 {
     $this->assertEquals([], $this->adapterFactory->all());
     $repoManager = new TestRepoManagerFactory();
     $this->adapterFactory->register('test', 'Testing', $repoManager);
     $this->adapterFactory->register('test2', 'Testing2', TestIssueTrackerFactory::class);
     $this->assertEquals(['test' => ['factory' => $repoManager, 'label' => 'Testing', AdapterFactory::SUPPORT_REPOSITORY_MANAGER => true, AdapterFactory::SUPPORT_ISSUE_TRACKER => false], 'test2' => ['factory' => TestIssueTrackerFactory::class, 'label' => 'Testing2', AdapterFactory::SUPPORT_REPOSITORY_MANAGER => false, AdapterFactory::SUPPORT_ISSUE_TRACKER => true]], $this->adapterFactory->all());
 }