You are here

public function FeaturesBundleIntegrationTest::testIsDefaultWithDefaultBundle in Features 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/Entity/FeaturesBundleIntegrationTest.php \Drupal\Tests\features\Kernel\Entity\FeaturesBundleIntegrationTest::testIsDefaultWithDefaultBundle()

@covers ::isDefault

File

tests/src/Kernel/Entity/FeaturesBundleIntegrationTest.php, line 38

Class

FeaturesBundleIntegrationTest
@coversDefaultClass \Drupal\features\Entity\FeaturesBundle @group features

Namespace

Drupal\Tests\features\Kernel\Entity

Code

public function testIsDefaultWithDefaultBundle() {
  $bundle = FeaturesBundle::create([
    'machine_name' => FeaturesBundleInterface::DEFAULT_BUNDLE,
  ]);
  $this
    ->assertTrue($bundle
    ->isDefault());
}