interface TestStatementInterface
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface
- 8.9.x core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface
- 10 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 implements \Drupal\Core\Database\Traversable
- interface \Drupal\Tests\views\Unit\Plugin\pager\TestStatementInterface implements \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\pagerView source
interface TestStatementInterface extends StatementInterface, \Iterator {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
StatementInterface::execute | public | function | Executes a prepared statement. | 1 |
StatementInterface::fetch | public | function | Fetches the next row from a result set. | 1 |
StatementInterface::fetchAll | public | function | Returns an array containing all of the result set rows. | 1 |
StatementInterface::fetchAllAssoc | public | function | Returns the result set as an associative array keyed by the given field. | 1 |
StatementInterface::fetchAllKeyed | public | function | Returns the entire result set as a single associative array. | 1 |
StatementInterface::fetchAssoc | public | function | Fetches the next row and returns it as an associative array. | 1 |
StatementInterface::fetchCol | public | function | Returns an entire single column of a result set as an indexed array. | 1 |
StatementInterface::fetchField | public | function | Returns a single field from the next record of a result set. | 1 |
StatementInterface::fetchObject | public | function | Fetches the next row and returns it as an object. | 1 |
StatementInterface::getConnectionTarget | public | function | Returns the target connection this statement is associated with. | 1 |
StatementInterface::getQueryString | public | function | Gets the query string of this statement. | 1 |
StatementInterface::rowCount | public | function | Returns the number of rows matched by the last SQL statement. | 1 |
StatementInterface::setFetchMode | public | function | Sets the default fetch mode for this statement. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.