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 1
1
<?php
2
2
/**
3
- * Copyright 2018 Adobe All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2018 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
declare (strict_types=1 );
7
7
25
25
use PHPUnit \Framework \Exception ;
26
26
use PHPUnit \Framework \MockObject \MockObject ;
27
27
use PHPUnit \Framework \TestCase ;
28
+ use Psr \Log \LoggerInterface ;
28
29
29
30
/**
30
31
* Test for SchemaBuilder.
@@ -63,6 +64,11 @@ class SchemaBuilderTest extends TestCase
63
64
*/
64
65
private $ sqlVersionProvider ;
65
66
67
+ /**
68
+ * @var LoggerInterface|MockObject
69
+ */
70
+ private $ loggerMock ;
71
+
66
72
protected function setUp (): void
67
73
{
68
74
$ this ->elementFactoryMock = $ this ->getMockBuilder (ElementFactory::class)
@@ -401,11 +407,16 @@ public function testBuildHandlesMissingColumnsGracefully()
401
407
->method ('read ' )
402
408
->willReturn ($ data );
403
409
410
+ $ this ->loggerMock = $ this ->getMockBuilder (LoggerInterface::class)
411
+ ->disableOriginalConstructor ()
412
+ ->getMock ();
413
+
404
414
$ schemaBuilder = new SchemaBuilder (
405
415
$ this ->elementFactoryMock ,
406
416
$ this ->dbSchemaReaderMock ,
407
417
$ this ->shardingMock ,
408
- $ readerCompositeMock
418
+ $ readerCompositeMock ,
419
+ $ this ->loggerMock
409
420
);
410
421
411
422
$ schemaBuilder ->build ($ this ->createMock (Schema::class));
You can’t perform that action at this time.
0 commit comments