summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-06-21 12:21:32 +0200
committerGitHub <noreply@github.com>2022-06-21 12:21:32 +0200
commit53eafc0cb72717094e368813005872cd0c17f4b0 (patch)
treecd0ff148bfa2a1add0d6015e7efe89001ac516d8 /tests
parent7d0804e85cbfce277b6985852d10d5e6b0a2fd90 (diff)
parentd8c419c304ad783d419f77aa03e83ee1adf23efd (diff)
downloadnextcloud-server-53eafc0cb72717094e368813005872cd0c17f4b0.tar.gz
nextcloud-server-53eafc0cb72717094e368813005872cd0c17f4b0.zip
Merge pull request #32868 from nextcloud/fix/replace-opis-closure-by-laravel-fork
Replace opis/closure by laravel/serializable-closure
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Command/CronBusTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/Command/CronBusTest.php b/tests/lib/Command/CronBusTest.php
index ea610a135d8..100de0a861c 100644
--- a/tests/lib/Command/CronBusTest.php
+++ b/tests/lib/Command/CronBusTest.php
@@ -47,4 +47,11 @@ class CronBusTest extends AsyncBusTest {
$job->execute($this->jobList);
}
}
+
+ public function testClosureFromPreviousVersion() {
+ $serializedClosure = 'C:32:"Opis\\Closure\\SerializableClosure":217:{a:5:{s:3:"use";a:0:{}s:8:"function";s:64:"function () {\\Test\\Command\\AsyncBusTest::$lastCommand = \'opis\';}";s:5:"scope";s:24:"Test\\Command\\CronBusTest";s:4:"this";N;s:4:"self";s:32:"0000000027dcfe2f00000000407fa805";}}';
+ $this->jobList->add('OC\Command\ClosureJob', $serializedClosure);
+ $this->runJobs();
+ $this->assertEquals('opis', AsyncBusTest::$lastCommand);
+ }
}