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
245
Issues
245
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
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
Compare Revisions
3b4af0b0de8d16e04030bdeb9c7392f04a06b5b6...856be50b1f286a6c5dd8a96904c2fc4f2ffcbad9
Source
856be50b1f286a6c5dd8a96904c2fc4f2ffcbad9
Select Git revision
...
Target
3b4af0b0de8d16e04030bdeb9c7392f04a06b5b6
Select Git revision
Compare
Commits (2)
(fix) Test regression from Media PropagateProperties delegate changes -
#616
· 0c32d3c0
Guy Thouret
authored
2 hours ago
0c32d3c0
(fix) Add missing tests for Media PropagateProperties delegate fromActivity -
#616
· 856be50b
Guy Thouret
authored
1 hour ago
856be50b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
PropagatePropertiesSpec.php
Spec/Core/Media/Delegates/PropagatePropertiesSpec.php
+6
-2
No files found.
Spec/Core/Media/Delegates/PropagatePropertiesSpec.php
View file @
856be50b
...
...
@@ -29,8 +29,8 @@ class PropagatePropertiesSpec extends ObjectBehavior
public
function
it_should_propagate_changes_to_activity
()
{
$this
->
entity
->
get
(
'title'
)
->
shouldBeCalled
()
->
willReturn
(
'new title'
);
$this
->
activity
->
get
Message
(
)
->
shouldBeCalled
()
->
willReturn
(
'old title'
);
$this
->
activity
->
set
Message
(
'new title'
)
->
shouldBeCalled
();
$this
->
activity
->
get
(
'title'
)
->
shouldBeCalled
()
->
willReturn
(
'old title'
);
$this
->
activity
->
set
(
'title'
,
'new title'
)
->
shouldBeCalled
();
$activityParameters
=
[
'batch'
,
...
...
@@ -49,6 +49,10 @@ class PropagatePropertiesSpec extends ObjectBehavior
public
function
it_should_propogate_properties_from_activity
()
{
$this
->
activity
->
get
(
'title'
)
->
shouldBeCalled
()
->
willReturn
(
'new title'
);
$this
->
entity
->
get
(
'title'
)
->
shouldbeCalled
()
->
willReturn
(
'old title'
);
$this
->
entity
->
set
(
'title'
,
'new title'
)
->
shouldBeCalled
();
$this
->
fromActivity
(
$this
->
activity
,
$this
->
entity
);
}
}
This diff is collapsed.
Click to expand it.