Inheritance: extends Illuminate\Support\Collection
 public function testStoringData()
 {
     $this->referenceCollection->each(function (RequestEntity $value) {
         $value->setDirty();
         $value->exists();
     });
     $this->storage->put($this->referenceCollection);
     $testRow = file_get_contents($this->storageFilePath);
     $this->assertEquals($this->referenceContent, $testRow);
 }
Example #2
0
 /**
  * @param array $data
  * @return RequestCollection
  */
 private function makeCollection($data = [])
 {
     return $this->collection->make()->load($data);
 }