public function test_can_set_password() { $this->entity->setPassword(new Password('passwordsdfdfsfs', new HasherStub())); $this->assertInstanceOf('Maatwebsite\\Usher\\Domain\\Users\\Embeddables\\Password', $this->entity->getPassword()); $this->assertEquals('hashed', (string) $this->entity->getPassword()); }