protected function FilterTest::savePaintingType in JSON:API 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::savePaintingType()
Creates a painting node type.
1 call to FilterTest::savePaintingType()
- FilterTest::setUp in tests/
src/ Kernel/ Query/ FilterTest.php
File
- tests/
src/ Kernel/ Query/ FilterTest.php, line 268
Class
- FilterTest
- @coversDefaultClass \Drupal\jsonapi\Query\Filter @group jsonapi @group jsonapi_query @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\QueryCode
protected function savePaintingType() {
NodeType::create([
'type' => 'painting',
])
->save();
$this
->createTextField('node', 'painting', 'colors', 'Colors', FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
$this
->createTextField('node', 'painting', 'shapes', 'Shapes', FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
$this
->createImageField('photo', 'painting');
}