You are here

public function FeaturesBundleIntegrationTest::testIsDefaultWithNonDefaultBundle in Features 8.3

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

@covers ::isDefault

File

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

Class

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

Namespace

Drupal\Tests\features\Kernel\Entity

Code

public function testIsDefaultWithNonDefaultBundle() {
  $bundle = FeaturesBundle::create([
    'machine_name' => 'other',
  ]);
  $this
    ->assertFalse($bundle
    ->isDefault());
}