public function testModelFactory() { $note = factory(Note::class)->create(); $noteFromDB = Note::where('submitter', $note->submitter)->first(); $this->assertEquals($note->submitter, $noteFromDB->submitter); }
/** * {@inheritdoc}. */ protected function findWithCondition($filter) { return Note::where('id', $filter)->orWhere('submitter', 'like', '%' . $filter . '%')->get(); }