setValues(['template_title' => 'Big Event', 'is_template' => 1, 'start_date' => 'now', 'event_type_id:name' => 'Meeting'])->execute()->first(); $e = Event::create()->setValues(['title' => 'Bigger Event', 'start_date' => 'now', 'event_type_id:name' => 'Meeting'])->execute()->first(); $result = (array) Event::get()->execute()->column('id'); $this->assertContains($e['id'], $result); $this->assertNotContains($t['id'], $result); } }