Beispiel #1
0
 public function test_completed()
 {
     $default = factory(Task::class)->create(['completed' => null]);
     $active = factory(Task::class)->create(['completed' => false]);
     $inactive = factory(Task::class)->create(['completed' => true]);
     $tasks = Task::completed()->lists('id');
     $this->assertNotContains($default->id, $tasks);
     $this->assertNotContains($active->id, $tasks);
     $this->assertContains($inactive->id, $tasks);
 }