Skip to content

Commit

Permalink
Refactored code, updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaise-lafrai committed Dec 24, 2024
1 parent 391cae8 commit 2d86f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/datastore/tests/src/Kernel/Service/PostImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function testProcessResourceErrorWithFailingDrop() {
->getMock();
$datastore_service->expects($this->once())
->method('drop')
->willThrowException(new \Exception('our test message'));
->willThrowException(new \Exception('drop error'));
$this->container->set('dkan.datastore.service', $datastore_service);

$post_import = new PostImport(
Expand All @@ -208,7 +208,7 @@ public function testProcessResourceErrorWithFailingDrop() {
$result = $post_import->processResource($resource);

$this->assertEquals(
'our test message',
'Attempted to retrieve a sitewide data dictionary, but none was set.',
$result->getPostImportMessage()
);
$this->assertEquals(
Expand Down

0 comments on commit 2d86f0d

Please sign in to comment.