public function testUsernameScope() { $this->assertThat(Title::username('admin')->get(), new CollectionPropertyHasOneValueConstraint('admin', 'username')); }