public function testSelectFieldContentFieldArray() { $app = $this->getApp(); $handler = new RecordHandler($app); $record1 = $app['storage']->getEmptyContent('pages'); $record2 = $app['storage']->getEmptyContent('pages'); $record1->setValues(['title' => 'Bruce', 'slug' => 'clippy', 'status' => 'published']); $record2->setValues(['title' => 'Johno', 'slug' => 'koala', 'status' => 'published']); $result = $handler->selectField([$record1, $record2], ['title'], true, 'slug'); $this->assertSame('Bruce', $result['clippy'][0]); $this->assertSame('Johno', $result['koala'][0]); }