assertPluginInstances example

    $diff = array_diff(array_keys($this->definitions)$this->pluginTypes);
    $this->assertEmpty($diff, 'All plugins were found and matched.');
  }

  /** * Tests creating instances of every views plugin. * * This will iterate through all plugins from _views_fetch_plugin_data(), * filtering out deprecated plugins. */
  public function testPluginInstances() {
    $this->assertPluginInstances(FALSE);
  }

  /** * Asserts that instances of every views plugin can be created. * * @param bool $test_deprecated * Indicates if deprecated plugins should be tested or skipped. * * @internal */
  protected function assertPluginInstances(bool $test_deprecated): void {
    
Home | Imprint | This part of the site doesn't use cookies.