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
216
Issues
216
List
Boards
Labels
Service Desk
Milestones
Merge Requests
31
Merge Requests
31
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
334bc6d5
Commit
334bc6d5
authored
1 hour ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) specs should resolve fine
parent
b9e36ab7
epic/post-scheduler
1 merge request
!294
WIP: epic/post-scheduler
Pipeline
#77113731
failed with stages
in 4 minutes and 33 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
Blog.php
Core/Blogs/Blog.php
+2
-2
CreateActivitySpec.php
Spec/Core/Blogs/Delegates/CreateActivitySpec.php
+8
-0
ManagerSpec.php
Spec/Core/Blogs/ManagerSpec.php
+4
-0
No files found.
Core/Blogs/Blog.php
View file @
334bc6d5
...
...
@@ -96,7 +96,7 @@ use Minds\Traits\MagicAttributes;
* @method Blog setAllowComments(bool $allowComments)
* @method bool getAllowComments()
* @method int getTimeSent()
* @method Blog setTimeSent(int $time
S
ent)
* @method Blog setTimeSent(int $time
_s
ent)
*/
class
Blog
extends
RepositoryEntity
{
...
...
@@ -243,7 +243,7 @@ class Blog extends RepositoryEntity
protected
$allowComments
=
true
;
/** @var int */
protected
$time
_s
ent
;
protected
$time
S
ent
;
/**
* Blog constructor.
...
...
This diff is collapsed.
Click to expand it.
Spec/Core/Blogs/Delegates/CreateActivitySpec.php
View file @
334bc6d5
...
...
@@ -81,6 +81,10 @@ class CreateActivitySpec extends ObjectBehavior
->
shouldBeCalled
()
->
willReturn
(
1000
);
$blog
->
getTimeCreated
()
->
shouldBeCalled
()
->
willReturn
(
9999
);
$this
->
db
->
getRow
(
"activity:entitylink:9999"
)
->
shouldBeCalled
()
->
willReturn
([]);
...
...
@@ -106,6 +110,10 @@ class CreateActivitySpec extends ObjectBehavior
->
shouldBeCalled
()
->
willReturn
(
9999
);
$blog
->
getTimeCreated
()
->
shouldBeCalled
()
->
willReturn
(
9999
);
$this
->
db
->
getRow
(
"activity:entitylink:9999"
)
->
shouldBeCalled
()
->
willReturn
([
'activity1'
]);
...
...
This diff is collapsed.
Click to expand it.
Spec/Core/Blogs/ManagerSpec.php
View file @
334bc6d5
...
...
@@ -153,6 +153,10 @@ class ManagerSpec extends ObjectBehavior
$blog
->
getSubtype
()
->
willReturn
(
'blog'
);
$blog
->
getTimeCreated
()
->
shouldBeCalled
()
->
willReturn
(
9999
);
$blog
->
setTimeCreated
(
Argument
::
type
(
'int'
))
->
shouldBeCalled
()
->
willReturn
(
$blog
);
...
...
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