Beispiel #1
0
 public function testBelongsToGroupReturnsFalseOnExtensionNotPartOfGroup()
 {
     $extensionPHP = $this->getExtensionMock('php');
     $manager = new Manager($this->container);
     $manager->addExtension($extensionPHP);
     $this->assertFalse($manager->belongsToGroup('php'));
 }
Beispiel #2
0
 public function testSetCustomDataAllOverridesDefaultData()
 {
     $manager = new Manager(self::CONF_DIR);
     $manager->addExtension('vagrantfile-local');
     $manager->addExtension('vagrantfile-rackspace');
     $customData = Yaml::parse(self::CONF_DIR . '/custom-data/custom.yml');
     $manager->setCustomDataAll($customData);
     $expectedResult = Yaml::parse(self::CONF_DIR . '/custom-data/expected-merged.yml');
     $this->assertEquals($expectedResult, $manager->getExtensions());
 }