protected function FilterTest::savePaintings in JSON:API 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::savePaintings()
Creates painting nodes.
1 call to FilterTest::savePaintings()
- FilterTest::setUp in tests/src/ Kernel/ Query/ FilterTest.php 
File
- tests/src/ Kernel/ Query/ FilterTest.php, line 202 
Class
- FilterTest
- @coversDefaultClass \Drupal\jsonapi\Query\Filter @group jsonapi @group jsonapi_query @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\QueryCode
protected function savePaintings($paintings) {
  foreach ($paintings as $painting) {
    Node::create(array_merge([
      'type' => 'painting',
    ], $painting))
      ->save();
  }
}