Skip to content

Commit

Permalink
pkp#9899 job unit tests patch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Oct 31, 2024
1 parent 22e59e8 commit 37aa474
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/jobs/bulk/BulkEmailSenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use PKP\tests\PKPTestCase;
use PKP\jobs\bulk\BulkEmailSender;
use PKP\user\Collector as UserCollector;
use APP\user\Repository as UserRepository;
use PKP\user\Repository as UserRepository;

/**
* @runTestsInSeparateProcesses
Expand Down
4 changes: 2 additions & 2 deletions tests/jobs/email/EditorialReminderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use PKP\facades\Locale;
use PKP\tests\PKPTestCase;
use PKP\jobs\email\EditorialReminder;
use APP\user\Repository as UserRepository;
use PKP\user\Repository as UserRepository;
use PKP\submission\reviewRound\ReviewRound;
use APP\submission\Collector as SubmissionCollector;
use APP\submission\Repository as SubmissionRepository;
Expand Down Expand Up @@ -76,7 +76,7 @@ public function testRunSerializedJob(): void

// Need to replace the container binding of `context` with a mock object
\APP\core\Services::register(
new class extends \APP\services\OJSServiceProvider
new class implements \Pimple\ServiceProviderInterface
{
public function register(\Pimple\Container $pimple)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use PKP\db\DAORegistry;
use APP\core\Application;
use PKP\tests\PKPTestCase;
use APP\user\Repository as UserRepository;
use PKP\user\Repository as UserRepository;
use PKP\jobs\notifications\NewAnnouncementNotifyUsers;
use PKP\announcement\Repository as AnnouncementRepository;
use PKP\emailTemplate\Repository as EmailTemplateRepository;
Expand Down
4 changes: 2 additions & 2 deletions tests/jobs/notifications/StatisticsReportMailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use PKP\db\DAORegistry;
use APP\core\Application;
use PKP\tests\PKPTestCase;
use APP\user\Repository as UserRepository;
use PKP\user\Repository as UserRepository;
use PKP\emailTemplate\Repository as EmailTemplateRepository;
use PKP\jobs\notifications\StatisticsReportMail;

Expand Down Expand Up @@ -99,7 +99,7 @@ public function testRunSerializedJob(): void

// Need to replace the container binding of `editorialStats` with mock object
\APP\core\Services::register(
new class extends \APP\services\OJSServiceProvider
new class implements \Pimple\ServiceProviderInterface
{
public function register(\Pimple\Container $pimple)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/jobs/notifications/StatisticsReportNotifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use Mockery;
use PKP\tests\PKPTestCase;
use APP\user\Repository as UserRepository;
use PKP\user\Repository as UserRepository;
use PKP\jobs\notifications\StatisticsReportNotify;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/jobs/statistics/CompileMonthlyMetricsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testRunSerializedJob(): void

// Need to replace the container binding of `geoStats` and `sushiStats` with mock objects
\APP\core\Services::register(
new class extends \APP\services\OJSServiceProvider
new class implements \Pimple\ServiceProviderInterface
{
public function register(\Pimple\Container $pimple)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true">
stopOnFailure="false">
<testsuites>
<testsuite name="LibraryJobs">
<directory suffix="Test.php">jobs</directory>
Expand Down

0 comments on commit 37aa474

Please sign in to comment.