Knp\Bundle\KnpBundlesBundle\Tests\Github\RepoTest::shouldUpdateCanonicalConfig PHP Method

shouldUpdateCanonicalConfig() public method

    public function shouldUpdateCanonicalConfig()
    {
        $bundle = new Bundle('KnpLabs/GoodBundle');
        $githubRepo = $this->getRepoWithMockedGitRepo($bundle);
        $githubRepo->updateCanonicalConfigFile($bundle);
        $expectedYaml = <<<EOT
vendor_good_bundle:
    app_id:               ~ # Required
    secret:               ~ # Required
    file:                 ~
    cookie:               false
    domain:               ~
    alias:                ~
    logging:              %kernel.debug%
    culture:              en_US
    class:
        api:                  Vendor\\FixtureBundle\\APIKey
        type:                 Vendor\\FixtureBundle\\Type
    permissions:          []

EOT;
        $this->assertEquals($expectedYaml, $githubRepo->getCanonicalConfiguration());
    }