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
232
Issues
232
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
7192407d
Commit
7192407d
authored
8 hours ago
by
Guy Thouret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore) Add spec test for boost campaign stats -
#631
parent
89b949a3
goal/boost-campaigns-e24
1 merge request
!235
WIP: Boost Campaigns (&24)
Pipeline
#86164677
passed with stages
in 9 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Core/Boost/Campaigns/Stats.php
Core/Boost/Campaigns/Stats.php
+0
-4
Spec/Core/Boost/Campaigns/StatsSpec.php
Spec/Core/Boost/Campaigns/StatsSpec.php
+8
-1
No files found.
Core/Boost/Campaigns/Stats.php
View file @
7192407d
<?php
/**
* Stats
* @author edgebal
*/
namespace
Minds\Core\Boost\Campaigns
;
...
...
This diff is collapsed.
Click to expand it.
Spec/Core/Boost/Campaigns/StatsSpec.php
View file @
7192407d
...
...
@@ -2,9 +2,9 @@
namespace
Spec\Minds\Core\Boost\Campaigns
;
use
Minds\Core\Boost\Campaigns\Campaign
;
use
Minds\Core\Boost\Campaigns\Stats
;
use
PhpSpec\ObjectBehavior
;
use
Prophecy\Argument
;
class
StatsSpec
extends
ObjectBehavior
{
...
...
@@ -12,4 +12,11 @@ class StatsSpec extends ObjectBehavior
{
$this
->
shouldHaveType
(
Stats
::
class
);
}
public
function
it_should_get_stats
(
Campaign
$campaign
)
{
$this
->
get
(
$campaign
)
->
shouldReturn
([
'cannot_fulfill_daily'
=>
false
,
]);
}
}
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