add coverage attributes

This commit is contained in:
Arno Kaimbacher 2019-03-20 18:40:14 +01:00
parent 9d195c450e
commit 6bfbbea060
8 changed files with 163 additions and 11 deletions

View file

@ -16,7 +16,7 @@ class SitelinkController extends Controller
->where('server_state', 'LIKE', "%" . $serverState . "%");
$select
->select(DB::raw('YEAR(published_date) as published_date'))
->select(DB::raw('YEAR(server_date_published) as published_date'))
->distinct(true);
$this->years = $select->pluck('published_date');