File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
lib/internal/Magento/Framework/Setup/Test/Unit/Declaration/Schema/Db Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright 2018 Adobe All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2018 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
2525use PHPUnit \Framework \Exception ;
2626use PHPUnit \Framework \MockObject \MockObject ;
2727use PHPUnit \Framework \TestCase ;
28+ use Psr \Log \LoggerInterface ;
2829
2930/**
3031 * Test for SchemaBuilder.
@@ -63,6 +64,11 @@ class SchemaBuilderTest extends TestCase
6364 */
6465 private $ sqlVersionProvider ;
6566
67+ /**
68+ * @var LoggerInterface|MockObject
69+ */
70+ private $ loggerMock ;
71+
6672 protected function setUp (): void
6773 {
6874 $ this ->elementFactoryMock = $ this ->getMockBuilder (ElementFactory::class)
@@ -401,11 +407,16 @@ public function testBuildHandlesMissingColumnsGracefully()
401407 ->method ('read ' )
402408 ->willReturn ($ data );
403409
410+ $ this ->loggerMock = $ this ->getMockBuilder (LoggerInterface::class)
411+ ->disableOriginalConstructor ()
412+ ->getMock ();
413+
404414 $ schemaBuilder = new SchemaBuilder (
405415 $ this ->elementFactoryMock ,
406416 $ this ->dbSchemaReaderMock ,
407417 $ this ->shardingMock ,
408- $ readerCompositeMock
418+ $ readerCompositeMock ,
419+ $ this ->loggerMock
409420 );
410421
411422 $ schemaBuilder ->build ($ this ->createMock (Schema::class));
You can’t perform that action at this time.
0 commit comments