Knp\Bundle\KnpBundlesBundle\Tests\Git\RepoManagerTest::shouldNotCreateNewRepoWhenExists PHP Method

shouldNotCreateNewRepoWhenExists() public method

    public function shouldNotCreateNewRepoWhenExists()
    {
        $bundle = new BundleEntity();
        $bundle->setOwnerName('KnpLabs');
        $bundle->setName('KnpBundles');
        $expectedDir = $this->getExpectedDir();
        $this->createRepoInExpectedLocation();
        $repoManager = $this->getRepoManager();
        $repoManager->expects($this->never())->method('cloneRepo');
        $this->assertTrue(is_dir($expectedDir));
        $this->assertInstanceOf('Knp\\Bundle\\KnpBundlesBundle\\Git\\Repo', $repoManager->getRepo($bundle));
    }