public function testContactAllowed() { $this->assertTrue($this->user->isContactAllowed()); $this->user->setContactAllowed(false); $this->assertFalse($this->user->isContactAllowed()); }