/** * @test */ public function the_highest_article_id_in_the_results_can_be_retrieved() { ImportResult::create(['article_id' => 1, 'imported' => 1]); ImportResult::create(['article_id' => 2, 'imported' => 0]); ImportResult::create(['article_id' => 3, 'imported' => 0]); ImportResult::create(['article_id' => 72, 'imported' => 1]); ImportResult::create(['article_id' => 9, 'imported' => 1]); ImportResult::create(['article_id' => 5, 'imported' => 0]); $this->assertEquals(72, ImportResult::getLatestImportId()); }