protected function FieldTest::getConfigFieldStorage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldTest::getConfigFieldStorage()
Returns a mocked configurable field storage object.
Return value
\Drupal\field\FieldStorageConfigInterface|\PHPUnit_Framework_MockObject_MockObject
4 calls to FieldTest::getConfigFieldStorage()
- FieldTest::testCalculateDependenciesWithConfiguredField in core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldTest.php - @covers ::calculateDependencies
- FieldTest::testClickSortWithConfiguredField in core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldTest.php - @dataProvider providerSortOrders
- FieldTest::testPrepareItemsByDelta in core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldTest.php - @covers ::prepareItemsByDelta
- FieldTest::testQueryWithGroupByForConfigField in core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldTest.php - @covers ::query
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldTest.php, line 660 - Contains \Drupal\Tests\views\Unit\Plugin\field\FieldTest.
Class
- FieldTest
- @coversDefaultClass \Drupal\views\Plugin\views\field\Field @group views
Namespace
Drupal\Tests\views\Unit\Plugin\fieldCode
protected function getConfigFieldStorage() {
$title_storage = $this
->getMock('Drupal\\field\\FieldStorageConfigInterface');
$title_storage
->expects($this
->any())
->method('getColumns')
->willReturn([
'value' => [
'type' => 'varchar',
],
]);
$title_storage
->expects($this
->any())
->method('getSettings')
->willReturn([]);
$title_storage
->expects($this
->any())
->method('getConstraints')
->willReturn([]);
return $title_storage;
}