public function testYearScope() { $this->assertThat(Title::year(2014)->get(), new CollectionPropertyHasOneValueConstraint('2014', 'year')); }