[MultiFormObjectDecorator::class] ]; protected $extraDataObjects = [ MultiFormObjectDecoratorDataObject::class ]; public function testTemporaryDataFilteredQuery() { $records = MultiFormObjectDecoratorDataObject::get() ->map('Name') ->toArray(); $this->assertContains('Test 1', $records); $this->assertContains('Test 2', $records); $this->assertNotContains('Test 3', $records); } public function testTemporaryDataQuery() { $records = MultiFormObjectDecoratorDataObject::get() ->filter(['MultiFormIsTemporary' => 1]) ->map('Name') ->toArray(); $this->assertNotContains('Test 1', $records); $this->assertNotContains('Test 2', $records); $this->assertContains('Test 3', $records); } }