function VariantCollectionTraitTest::testRemoveVariant
Same name in other branches
- 8.x-3.x tests/src/Unit/VariantCollectionTraitTest.php \Drupal\Tests\ctools\Unit\VariantCollectionTraitTest::testRemoveVariant()
@covers ::removeVariant
@depends testGetVariant
File
-
tests/
src/ Unit/ VariantCollectionTraitTest.php, line 136
Class
- VariantCollectionTraitTest
- Tests the methods of a variant-aware class.
Namespace
Drupal\Tests\ctools\UnitCode
public function testRemoveVariant($data) {
[
$trait_object,
$uuid,
] = $data;
$this->assertSame($trait_object, $trait_object->removeVariant($uuid));
$this->assertFalse($trait_object->getVariants()
->has($uuid));
return [
$trait_object,
$uuid,
];
}