Commit b678f015 authored by Mark Harding's avatar Mark Harding

(fix): failing tests

No related merge requests found
Pipeline #88150830 passed with stages
in 10 minutes and 42 seconds
......@@ -324,10 +324,10 @@ class Manager
if (isset($values['published'])) {
$this->user->setProPublished($values['published']);
$this->saveAction
->setEntity($this->user)
$this->saveAction
->setEntity($this->user)
->save();
}
}
$this->setupRoutingDelegate
->onUpdate($settings);
......
......@@ -958,7 +958,7 @@ class User extends \ElggUser
return $this;
}
/**
/**
* Return if is published
* @return bool
*/
......
......@@ -110,6 +110,12 @@ class HydrateSettingsDelegateSpec extends ObjectBehavior
->shouldBeCalled()
->willReturn($settings);
$user->isProPublished()
->willReturn(false);
$settings->setPublished(false)
->shouldBeCalled();
$this
->shouldNotThrow(Exception::class)
->duringOnGet($user, $settings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment