public function testAllCategoriesScope() { $this->assertThat(Title::allCategories(1, 2)->get(), new CollectionNestedCollectionPropertyHasAllValuesConstraint([1, 2], 'categories', 'cat_id')); }