public function PackageTest::testSetFeaturesInfo in Features 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/PackageTest.php \Drupal\Tests\features\Unit\PackageTest::testSetFeaturesInfo()
@covers ::setFeaturesInfo
File
- tests/
src/ Unit/ PackageTest.php, line 64
Class
- PackageTest
- @coversDefaultClass \Drupal\features\Package @group features
Namespace
Drupal\Tests\features\UnitCode
public function testSetFeaturesInfo() {
$package = new Package('test_feature', []);
$this
->assertEquals([], $package
->getFeaturesInfo());
$package
->setFeaturesInfo([
'bundle' => 'test_bundle',
]);
$this
->assertEquals([
'bundle' => 'test_bundle',
], $package
->getFeaturesInfo());
$this
->assertEquals('test_bundle', $package
->getBundle());
}