From 23a8796dafa4107d70183a8c454d432c47e9f6dd Mon Sep 17 00:00:00 2001 From: Holger Veltrup Date: Wed, 10 Apr 2024 15:58:03 +0200 Subject: [PATCH] test: fix tests --- test/Service/Indexer/InternalResourceIndexerTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/Service/Indexer/InternalResourceIndexerTest.php b/test/Service/Indexer/InternalResourceIndexerTest.php index c10b0a5..214342b 100644 --- a/test/Service/Indexer/InternalResourceIndexerTest.php +++ b/test/Service/Indexer/InternalResourceIndexerTest.php @@ -144,8 +144,8 @@ public function setUp(): void $this->aborter, $this->indexerConfigurationLoader, 'test-source', + $this->logger, $this->lockFactory, - $this->logger ); } @@ -435,8 +435,10 @@ public function testLock(): void { $this->logger->expects($this->once()) ->method('notice') - ->with('Indexer with source "test-source" is already running'); - $lock = $this->lockFactory->createLock('indexer.test-source'); + ->with('Indexer is already running', [ + 'index' => 'test' + ]); + $lock = $this->lockFactory->createLock('indexer.test'); try { $lock->acquire(); $this->indexer->index();