Gush\Tests\Factory\AdapterFactoryTest::testGetAllAdapters PHP Method

testGetAllAdapters() public method

public testGetAllAdapters ( )
    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());
    }