public function FeaturesBundleIntegrationTest::testGetProfile in Features 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Entity/FeaturesBundleIntegrationTest.php \Drupal\Tests\features\Kernel\Entity\FeaturesBundleIntegrationTest::testGetProfile()
@covers ::getProfileName @covers ::setProfileName
File
- tests/
src/ Kernel/ Entity/ FeaturesBundleIntegrationTest.php, line 75
Class
- FeaturesBundleIntegrationTest
- @coversDefaultClass \Drupal\features\Entity\FeaturesBundle @group features
Namespace
Drupal\Tests\features\Kernel\EntityCode
public function testGetProfile() {
$bundle = FeaturesBundle::create([
'machine_name' => 'other',
'profile_name' => 'example',
'is_profile' => TRUE,
]);
$this
->assertEquals('example', $bundle
->getProfileName());
$bundle
->setProfileName('example2');
$this
->assertEquals('example2', $bundle
->getProfileName());
}