summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-20 17:43:56 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-21 10:37:13 +0200
commit1ee7c987f2a0da0678ca5c8c55af7d6138d34872 (patch)
tree9eee0bcf2d20db583760c75cf693494c2acf2630 /application
parent649d3b3eb41a9b02f3a4826d22ea2422db646a99 (diff)
Fix mutlipaste_queue test using incorrect data in mock
The error return changed with CI3 so the test also needs to change Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/test/tests/test_service_multipaste_queue.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/test/tests/test_service_multipaste_queue.php b/application/test/tests/test_service_multipaste_queue.php
index 0427425a0..cab53e335 100644
--- a/application/test/tests/test_service_multipaste_queue.php
+++ b/application/test/tests/test_service_multipaste_queue.php
@@ -38,7 +38,7 @@ class test_service_multipaste_queue extends \test\Test {
public function test_get()
{
- $this->session->shouldReceive('userdata')->with("multipaste_queue")->once()->andReturn(false);
+ $this->session->shouldReceive('userdata')->with("multipaste_queue")->once()->andReturn(null);
$this->t->is_deeply($this->m->get(), [], "Fresh queue is empty");
}
@@ -54,7 +54,7 @@ class test_service_multipaste_queue extends \test\Test {
public function test_append()
{
- $this->session->shouldReceive('userdata')->with("multipaste_queue")->once()->andReturn(false);
+ $this->session->shouldReceive('userdata')->with("multipaste_queue")->once()->andReturn(null);
$this->mfile->shouldReceive('valid_id')->with('abc')->times(2)->andReturn(true);
$this->session->shouldReceive('set_userdata')->with("multipaste_queue", ['abc'])->once();
$this->t->is($this->m->append(['abc']), null, "append([abc]) should succeed");