Gush\Tests\Subscriber\GitRepoSubscriberTest::detects_and_informs_missing_adapter_information PHP Method

detects_and_informs_missing_adapter_information() public method

    public function detects_and_informs_missing_adapter_information()
    {
        $command = new GitRepoCommand();
        $commandTest = $this->runCommandTest($command);
        $display = $commandTest->getDisplay(true);
        $this->assertContains('You did not set or provide an adapter-name', $display);
        $this->assertContains('"origin" Gush detected "github"', $display);
        $this->assertContains('You did not set or provided an organization and/or repository name.', $display);
        $this->assertContains('Org: "gushphp" / repo: "gush"', $display);
        $this->assertNotNull($command->getAdapter());
        $this->assertEquals('github', $command->getAdapter()->getAdapterName());
        $this->assertEquals('gushphp', $command->getAdapter()->getUsername());
        $this->assertEquals('gush', $command->getAdapter()->getRepository());
        $this->assertEquals('gushphp', $command->getIssueTracker()->getUsername());
        $this->assertEquals('gush', $command->getIssueTracker()->getRepository());
    }