function DefaultLazyPluginCollectionTest::testCount

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::testCount()
  2. 10 core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::testCount()
  3. 9 core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::testCount()
  4. 8.9.x core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::testCount()

Tests count.

File

core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php, line 219

Class

DefaultLazyPluginCollectionTest
Tests Drupal\Core\Plugin\DefaultLazyPluginCollection.

Namespace

Drupal\Tests\Core\Plugin

Code

public function testCount() : void {
  $this->setupPluginCollection();
  $this->assertCount(3, $this->defaultPluginCollection);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.