interface TestStatementInterface

Same name in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface
  2. 10 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface
  3. 11.x core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface

Creates StatementInterface for testing.

As StatementInterface extends \Traversable, which though always needs an additional interface. The Statement class itself can't be mocked because of its __wakeup function.

Hierarchy

  • interface \Drupal\Core\Database\StatementInterface extends \Drupal\Core\Database\Traversable
    • interface \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface extends \Drupal\Core\Database\StatementInterface \Drupal\Tests\views\Unit\Plugin\pager\Iterator

Expanded class hierarchy of TestStatementInterface

All classes that implement TestStatementInterface

File

core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php, line 287

Namespace

Drupal\Tests\views\Unit\Plugin\pager
View source
interface TestStatementInterface extends StatementInterface, \Iterator {

}

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