public function test_can_set_email() { $this->entity->setEmail(new Email('*****@*****.**')); $this->assertInstanceOf('Maatwebsite\\Usher\\Domain\\Users\\Embeddables\\Email', $this->entity->getEmail()); $this->assertEquals('*****@*****.**', (string) $this->entity->getEmail()); }