PHP Class Knp\Bundle\KnpBundlesBundle\Tests\Github\RepoTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: KnpLabs/KnpBundles

Public Methods

Method Description
isValidSymfonyBundleShouldReturnFALSEIfRepoHasIncorrectComposerFileAndIncorrectBundleClass ( )
isValidSymfonyBundleShouldReturnTRUEIfRepoHasCorrectComposerFile ( )
isValidSymfonyBundleShouldReturnTrueIfRepoDoesHaveIncorrectComposerFileButCorrectBundleClass ( )
shouldNotUpdateCanonicalConfig ( )
shouldNotUpdateVersionsHistoryWithWrongData ( )
shouldUpdateCanonicalConfig ( )
shouldUpdateVersionsHistory ( )
testUpdateComposerFailure ( )
testUpdateComposerSuccess ( )

Protected Methods

Method Description
getFullyMockedRepo ( string $folder ) : Repo
getGitRepoMock ( )
getOwnerManagerMock ( )
getRepo ( $httpClient = null )
getRepoWithMockedGitRepo ( Bundle $bundle )
getRepoWithMockedGithubClient ( $bundleClassName, $bundleClassContentsLink, $validComposerFile = true )

Method Details

getFullyMockedRepo() protected method

protected getFullyMockedRepo ( string $folder ) : Repo
$folder string
return Knp\Bundle\KnpBundlesBundle\Github\Repo

getGitRepoMock() protected method

protected getGitRepoMock ( )

getOwnerManagerMock() protected method

protected getOwnerManagerMock ( )

getRepo() protected method

protected getRepo ( $httpClient = null )

getRepoWithMockedGitRepo() protected method

protected getRepoWithMockedGitRepo ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

getRepoWithMockedGithubClient() protected method

protected getRepoWithMockedGithubClient ( $bundleClassName, $bundleClassContentsLink, $validComposerFile = true )

isValidSymfonyBundleShouldReturnFALSEIfRepoHasIncorrectComposerFileAndIncorrectBundleClass() public method

isValidSymfonyBundleShouldReturnTRUEIfRepoHasCorrectComposerFile() public method

isValidSymfonyBundleShouldReturnTrueIfRepoDoesHaveIncorrectComposerFileButCorrectBundleClass() public method

shouldNotUpdateCanonicalConfig() public method

shouldNotUpdateVersionsHistoryWithWrongData() public method

shouldUpdateCanonicalConfig() public method

shouldUpdateVersionsHistory() public method

testUpdateComposerFailure() public method

testUpdateComposerSuccess() public method