->
with(ImportStorageTransformer::LOCK_NAME
) ->
willReturn(FALSE
);
$lock->
expects($this->
once()) ->
method('wait'
) ->
with(ImportStorageTransformer::LOCK_NAME
);
// The import transformer under test.
$transformer =
new ImportStorageTransformer( $this->container->
get('event_dispatcher'
),
$this->container->
get('database'
),
$lock,
new NullLockBackend() );
$this->
expectException(StorageTransformerException::
class);
$this->
expectExceptionMessage("Cannot acquire config import transformer lock."
);
$transformer->
transform(new MemoryStorage());
} /**
* Tests the import transformer during a running config import.
*/
public function testTransformWhileImporting() {