public function testCategoryGroupScope() { $this->assertThat(Title::categoryGroup(1)->get(), new CollectionNestedCollectionPropertyHasOneValueConstraint(1, 'categories', 'group_id')); }