function VariantCollectionTraitTest::testGetVariantsSort

Same name in other branches
  1. 8.x-3.x tests/src/Unit/VariantCollectionTraitTest.php \Drupal\Tests\ctools\Unit\VariantCollectionTraitTest::testGetVariantsSort()

@covers ::getVariants

@depends testGetVariants

File

tests/src/Unit/VariantCollectionTraitTest.php, line 78

Class

VariantCollectionTraitTest
Tests the methods of a variant-aware class.

Namespace

Drupal\Tests\ctools\Unit

Code

public function testGetVariantsSort(VariantPluginCollection $variants) {
    $this->assertEquals([
        'bar' => 'bar',
        'foo' => 'foo',
    ], $variants->getInstanceIds());
}