Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
231
Issues
231
List
Boards
Labels
Service Desk
Milestones
Merge Requests
36
Merge Requests
36
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
b678f015
Commit
b678f015
authored
7 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): failing tests
parent
f362a7db
feat/draft-mode-for-plus
No related merge requests found
Pipeline
#88150830
passed with stages
in 10 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
Core/Pro/Manager.php
Core/Pro/Manager.php
+3
-3
Entities/User.php
Entities/User.php
+1
-1
Spec/Core/Pro/Delegates/HydrateSettingsDelegateSpec.php
Spec/Core/Pro/Delegates/HydrateSettingsDelegateSpec.php
+6
-0
No files found.
Core/Pro/Manager.php
View file @
b678f015
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Entities/User.php
View file @
b678f015
...
...
@@ -958,7 +958,7 @@ class User extends \ElggUser
return
$this
;
}
/**
/**
* Return if is published
* @return bool
*/
...
...
This diff is collapsed.
Click to expand it.
Spec/Core/Pro/Delegates/HydrateSettingsDelegateSpec.php
View file @
b678f015
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment