From 159bf11b48b61c7c0e0228623b1c7e8939460585 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Fri, 5 Jul 2024 15:57:24 -0700 Subject: [PATCH] pkp/pkp-lib#10127 WIP add DepositOrcidSubmissionTest --- .../jobs/orcid/DepositOrcidSubmissionTest.php | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/jobs/orcid/DepositOrcidSubmissionTest.php diff --git a/tests/jobs/orcid/DepositOrcidSubmissionTest.php b/tests/jobs/orcid/DepositOrcidSubmissionTest.php new file mode 100644 index 00000000000..9594bd3b7a5 --- /dev/null +++ b/tests/jobs/orcid/DepositOrcidSubmissionTest.php @@ -0,0 +1,50 @@ +assertInstanceOf( + DepositOrcidSubmission::class, + unserialize(base64_decode($this->serializedJobData)), + ); + } + + public function testRunSerializedJob(): void + { + $this->mockGuzzleClient(); + + /** @var DepositOrcidSubmission $depositOrcidSubmissionJob */ + $depositOrcidSubmissionJob = unserialize(base64_decode($this->serializedJobData)); + + $this->assertNull($depositOrcidSubmissionJob->handle()); + } +}