createIssueTracker() public method

Creates a new IssueTracker (IssueTracker object) with the given configuration.
public createIssueTracker ( string $name, array $adapterConfig, Config $globalConfig ) : Gush\Adapter\IssueTracker
$name string
$adapterConfig array
$globalConfig Gush\Config
return Gush\Adapter\IssueTracker
コード例 #1
0
ファイル: AdapterFactoryTest.php プロジェクト: gushphp/gush
 public function testCreateIssueTrackerAdapter()
 {
     $factory = new TestIssueTrackerFactory();
     $this->adapterFactory->register('test', 'Testing', $factory);
     $createdAdapter = $this->adapterFactory->createIssueTracker('test', [], $this->config);
     $this->assertInstanceOf(IssueTracker::class, $createdAdapter);
 }